Skip to content

Commit

Permalink
Set Boost_USE_STATIC_LIBS explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
vespakoen committed Sep 11, 2023
1 parent 8506d0b commit 1b7c554
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -110,7 +110,11 @@ set(Boost_DEBUG ON CACHE BOOL "boost-debug")
set(TRUTHY_VALUES "ON;YES;TRUE;1")
if(USE_STANDALONE OR (DEFINED ENV{USE_STANDALONE} AND
"$ENV{USE_STANDALONE}" IN_LIST TRUTHY_VALUES))
set(Boost_USE_STATIC_LIBS ON CACHE BOOL "boost-use-static-libs")
message(STATUS "Using Boost static library")
set(Boost_USE_STATIC_LIBS ON)
else()
message(STATUS "Using Boost shared library")
set(Boost_USE_STATIC_LIBS OFF)
endif()
if(DEFINED ENV{BOOST_ROOT} OR DEFINED BOOST_ROOT)
set(Boost_NO_SYSTEM_PATHS ON)
Expand Down

0 comments on commit 1b7c554

Please sign in to comment.