Skip to content

Commit

Permalink
Merge pull request #2386 from o01eg/fix-win-boost-no-lib
Browse files Browse the repository at this point in the history
Fix Boost auto-linking
  • Loading branch information
geoffthemedio committed Feb 18, 2019
2 parents 38df9e8 + c80af26 commit 179c903
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -254,9 +254,9 @@ set_property(DIRECTORY APPEND
PROPERTY COMPILE_DEFINITIONS
# Disable Boost auto-linking
# http://www.boost.org/doc/libs/1_59_0/libs/config/doc/html/index.html#boost_config.configuring_boost_for_your_platform.user_settable_options
BOOST_ALL_NO_LINK
BOOST_ALL_NO_LIB

# Boost iostreams doesn't honor BOOST_ALL_NO_LINK when linking zlib.
# Boost iostreams doesn't honor BOOST_ALL_NO_LIB when linking zlib.
# It also tries to link by default to the boost in-source zlib librar,
# which we don't want.
# http://www.boost.org/doc/libs/1_59_0/boost/iostreams/detail/config/zlib.hpp
Expand Down
4 changes: 2 additions & 2 deletions GG/CMakeLists.txt
Expand Up @@ -84,9 +84,9 @@ set(MINIMUM_BOOST_VERSION 1.58.0)

if(NOT USE_STATIC_LIBS)
add_definitions(
-DBOOST_ALL_NO_LINK
-DBOOST_ALL_NO_LIB
-DBOOST_ALL_DYN_LINK
-DBOOST_LOG_NO_LINK
-DBOOST_LOG_NO_LIB
-DBOOST_LOG_DYN_LINK
)
endif()
Expand Down
2 changes: 1 addition & 1 deletion GG/test/unit/CMakeLists.txt
Expand Up @@ -32,7 +32,7 @@ add_executable(gg_unittest
target_compile_definitions(gg_unittest
PRIVATE
-DBOOST_TEST_DYN_LINK
-DBOOST_TEST_NO_LINK
-DBOOST_TEST_NO_LIB
)

target_link_libraries(gg_unittest
Expand Down
2 changes: 1 addition & 1 deletion test/parse/CMakeLists.txt
Expand Up @@ -10,7 +10,7 @@ target_compile_definitions(fo_unittest_parse
PRIVATE
-DFREEORION_BUILD_SERVER
-DBOOST_TEST_DYN_LINK
-DBOOST_TEST_NO_LINK
-DBOOST_TEST_NO_LIB
)

target_include_directories(fo_unittest_parse
Expand Down
4 changes: 2 additions & 2 deletions test/system/CMakeLists.txt
Expand Up @@ -14,9 +14,9 @@ target_compile_definitions(fo_systemtest_game
PRIVATE
-DFREEORION_BUILD_HUMAN
-DBOOST_TEST_DYN_LINK
-DBOOST_TEST_NO_LINK
-DBOOST_TEST_NO_LIB
-DBOOST_LOG_DYN_LINK
-DBOOST_LOG_NO_LINK
-DBOOST_LOG_NO_LIB
-DBOOST_TEST_IGNORE_SIGCHLD
)

Expand Down
2 changes: 1 addition & 1 deletion test/util/CMakeLists.txt
Expand Up @@ -7,7 +7,7 @@ add_executable(fo_unittest_util
target_compile_definitions(fo_unittest_util
PRIVATE
-DBOOST_TEST_DYN_LINK
-DBOOST_TEST_NO_LINK
-DBOOST_TEST_NO_LIB
)

target_include_directories(fo_unittest_util
Expand Down

0 comments on commit 179c903

Please sign in to comment.