Skip to content

Commit 1991b05

Browse files
authored
Merge pull request #93 from cgraeser/feature/cmake-boost-pool-option
[cmake] Add CMake option to enable boost pool support
2 parents 1c8e29a + 5a575a1 commit 1991b05

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

CMakeLists.txt

+10-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,16 @@ set(REAL_TYPE double)
5252
set(ADVBRANCH "#undef ADOLC_ADVANCED_BRANCHING")
5353
set(ADTL_REFCNT "#undef USE_ADTL_REFCOUNTING")
5454
set(SPARSE_DRIVERS "#undef SPARSE_DRIVERS")
55-
set(USE_BOOST_POOL "#undef USE_BOOST_POOL")
55+
56+
option(ENABLE_BOOST_POOL "Flag to activate boost-pool support" OFF)
57+
if(ENABLE_BOOST_POOL)
58+
message(STATUS "Boost-pool support is enabled.")
59+
set(USE_BOOST_POOL "#define USE_BOOST_POOL 1")
60+
else()
61+
message(STATUS "Boost-pool support is disabled.")
62+
set(USE_BOOST_POOL "#undef USE_BOOST_POOL")
63+
endif()
64+
5665

5766
# include subdirectories for handling of includes and source files
5867
# ----------------------------------------------------------------

0 commit comments

Comments
 (0)