From 04b08b5bdef84094d4997fe27b1823df8e5ae232 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 8 Dec 2019 04:57:32 +0300 Subject: fix CMakeLists.txt for Visual Studio 2019 It does work w/ gcc, but for Visual Studio 2019, it * tries to link client.exe and server.exe with Boost.DateTime and Boost.Regex, * doesn't link with unit_test_framework automatically, which is expected (I dunno why it works with gcc). --- test/unit_tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt index ebdfbf1..1d68318 100644 --- a/test/unit_tests/CMakeLists.txt +++ b/test/unit_tests/CMakeLists.txt @@ -1,4 +1,4 @@ -find_package(Boost REQUIRED) +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) -- cgit v1.2.3