Fix for static linking to boost
parent
4730527481
commit
aa942a664b
|
@ -91,10 +91,10 @@ set(CPACK_GENERATOR "TGZ" CACHE STRING "CPack Default Binary Generator")
|
||||||
# If using Boost shared libs, disable auto linking
|
# If using Boost shared libs, disable auto linking
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# Some libraries, at least Boost Program Options, rely on this to export DLL symbols
|
# Some libraries, at least Boost Program Options, rely on this to export DLL symbols
|
||||||
add_definitions(-DBOOST_ALL_DYN_LINK)
|
|
||||||
# Disable autolinking
|
# Disable autolinking
|
||||||
if(NOT Boost_USE_STATIC_LIBS)
|
if(NOT Boost_USE_STATIC_LIBS)
|
||||||
add_definitions(-DBOOST_ALL_NO_LIB)
|
add_definitions(-DBOOST_ALL_NO_LIB)
|
||||||
|
add_definitions(-DBOOST_ALL_DYN_LINK)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue