Skip to content
Snippets Groups Projects
Commit cd568605 authored by Michael Kuron's avatar Michael Kuron :mortar_board:
Browse files

Don't link boost libraries if we don't need them

parent 162b1b4c
No related merge requests found
...@@ -701,8 +701,10 @@ if ( Boost_FOUND ) ...@@ -701,8 +701,10 @@ if ( Boost_FOUND )
else() else()
include_directories ( SYSTEM ${Boost_INCLUDE_DIRS} ) include_directories ( SYSTEM ${Boost_INCLUDE_DIRS} )
endif() endif()
link_directories ( ${Boost_LIBRARY_DIRS} ) if( waLBerla_REQUIRED_BOOST_COMPONENTS )
list ( APPEND SERVICE_LIBS ${Boost_LIBRARIES} ) link_directories ( ${Boost_LIBRARY_DIRS} )
list ( APPEND SERVICE_LIBS ${Boost_LIBRARIES} )
endif()
add_definitions ( -DBOOST_ALL_NO_LIB ) # Disable Boost auto-linking (CMAKE does that for us...) add_definitions ( -DBOOST_ALL_NO_LIB ) # Disable Boost auto-linking (CMAKE does that for us...)
#fix for static lib usage: http://stackoverflow.com/questions/11812463/boost-python-link-errors-under-windows-msvc10 #fix for static lib usage: http://stackoverflow.com/questions/11812463/boost-python-link-errors-under-windows-msvc10
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment