aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-04 22:40:12 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-04 22:40:12 +0300
commitbc7a07f84c7e2a521d7acc54bc422eed92d118f9 (patch)
tree1fa5c39d15702de9ad85502f94a371d9772443f0
parentunit_tests: reorder code a little (diff)
downloadmath-server-bc7a07f84c7e2a521d7acc54bc422eed92d118f9.tar.gz
math-server-bc7a07f84c7e2a521d7acc54bc422eed92d118f9.zip
can't believe Boost::disable_autolinking isn't everywhere
Diffstat (limited to '')
-rw-r--r--server/lexer/CMakeLists.txt2
-rw-r--r--test/unit_tests/CMakeLists.txt2
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)