cmake: static builds need to indicate desired boost build variant

This commit is contained in:
j-berman
2026-09-18 03:06:21 -07:00
parent b7fb7b5f0d
commit 9c1bdb2bc8
+5
View File
@@ -946,6 +946,11 @@ if(STATIC)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${STATIC_FLAGS} ")
endif()
if(STATIC)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_STATIC_RUNTIME ON)
endif()
# Find Boost headers
set(BOOST_MIN_VER 1.69)
find_package(Boost ${BOOST_MIN_VER} QUIET REQUIRED CONFIG)