From bc7a07f84c7e2a521d7acc54bc422eed92d118f9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 4 Oct 2020 22:40:12 +0300 Subject: can't believe Boost::disable_autolinking isn't everywhere --- server/lexer/CMakeLists.txt | 2 +- test/unit_tests/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/lexer/CMakeLists.txt b/server/lexer/CMakeLists.txt index b5b8b63..9c696d3 100644 --- a/server/lexer/CMakeLists.txt +++ b/server/lexer/CMakeLists.txt @@ -2,4 +2,4 @@ find_package(Boost REQUIRED COMPONENTS regex) add_library(lexer details/parse.cpp lexer.cpp token.cpp token_type.cpp) target_link_libraries(lexer PUBLIC common) -target_link_libraries(lexer PRIVATE Boost::regex) +target_link_libraries(lexer PRIVATE Boost::disable_autolinking Boost::regex) diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt index 39cd4ee..314fb58 100644 --- a/test/unit_tests/CMakeLists.txt +++ b/test/unit_tests/CMakeLists.txt @@ -2,7 +2,7 @@ find_package(Boost REQUIRED COMPONENTS unit_test_framework) add_executable(unit_tests main.cpp lexer.cpp parser.cpp) target_link_libraries(unit_tests PRIVATE lexer parser) -target_link_libraries(unit_tests PRIVATE Boost::unit_test_framework) +target_link_libraries(unit_tests PRIVATE Boost::disable_autolinking Boost::unit_test_framework) target_include_directories(unit_tests PRIVATE ../..) set_target_properties(unit_tests PROPERTIES OUTPUT_NAME math-server-unit-tests) -- cgit v1.2.3