aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--client/CMakeLists.txt1
-rw-r--r--server/main/CMakeLists.txt1
-rw-r--r--test/unit_tests/CMakeLists.txt2
3 files changed, 3 insertions, 1 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
index cd23de8..01a86df 100644
--- a/client/CMakeLists.txt
+++ b/client/CMakeLists.txt
@@ -3,3 +3,4 @@ find_package(Boost REQUIRED COMPONENTS filesystem program_options)
add_executable(client main.cpp)
target_include_directories(client SYSTEM PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(client PRIVATE ${Boost_LIBRARIES})
+target_compile_definitions(client PRIVATE BOOST_DATE_TIME_NO_LIB BOOST_REGEX_NO_LIB)
diff --git a/server/main/CMakeLists.txt b/server/main/CMakeLists.txt
index b322390..e8df7cb 100644
--- a/server/main/CMakeLists.txt
+++ b/server/main/CMakeLists.txt
@@ -7,6 +7,7 @@ target_link_libraries(server PRIVATE common parser)
target_include_directories(server SYSTEM PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(server PRIVATE ${Boost_LIBRARIES})
+target_compile_definitions(server PRIVATE BOOST_DATE_TIME_NO_LIB BOOST_REGEX_NO_LIB)
if(DEBUG_ASIO)
target_compile_definitions(server PRIVATE BOOST_ASIO_ENABLE_HANDLER_TRACKING)
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)