Skip to content

Commit

Permalink
Merge pull request #93 from cgraeser/feature/cmake-boost-pool-option
Browse files Browse the repository at this point in the history
[cmake] Add CMake option to enable boost pool support
  • Loading branch information
TimSiebert1 authored Jan 6, 2025
2 parents 1c8e29a + 5a575a1 commit 1991b05
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,16 @@ set(REAL_TYPE double)
set(ADVBRANCH "#undef ADOLC_ADVANCED_BRANCHING")
set(ADTL_REFCNT "#undef USE_ADTL_REFCOUNTING")
set(SPARSE_DRIVERS "#undef SPARSE_DRIVERS")
set(USE_BOOST_POOL "#undef USE_BOOST_POOL")

option(ENABLE_BOOST_POOL "Flag to activate boost-pool support" OFF)
if(ENABLE_BOOST_POOL)
message(STATUS "Boost-pool support is enabled.")
set(USE_BOOST_POOL "#define USE_BOOST_POOL 1")
else()
message(STATUS "Boost-pool support is disabled.")
set(USE_BOOST_POOL "#undef USE_BOOST_POOL")
endif()


# include subdirectories for handling of includes and source files
# ----------------------------------------------------------------
Expand Down

0 comments on commit 1991b05

Please sign in to comment.