weird use case with boost linking

on windows BOOST_ALL_DYN_LINK must be supplied, otherwise find_package
tries to find 'libboost_...' instead of 'boost_...'
This commit is contained in:
f4alt
2023-12-04 11:50:48 -05:00
parent 33793a4ded
commit 305d763dc6
+1 -1
View File
@@ -223,7 +223,7 @@ if (USE_STATIC_BOOST)
set(Boost_USE_STATIC_LIBS TRUE)
endif ()
find_package(Boost 1.70 REQUIRED COMPONENTS atomic chrono date_time filesystem regex system thread wave)
add_definitions(-DBOOST_FILESYSTEM_VERSION=3 -DBOOST_FILESYSTEM_NO_DEPRECATED)
add_definitions(-DBOOST_FILESYSTEM_VERSION=3 -DBOOST_FILESYSTEM_NO_DEPRECATED -DBOOST_ALL_DYN_LINK)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
find_package(OSL REQUIRED)