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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user