mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 15:41:44 +02:00
cmake: static builds need to indicate desired boost build variant
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user