aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/client/CMakeLists.txt
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-12-08 04:57:32 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-12-08 04:57:32 +0300
commit04b08b5bdef84094d4997fe27b1823df8e5ae232 (patch)
treee42280c471eed6c2619225a316ad8c1645d080b8 /client/CMakeLists.txt
parentsplit server into multiple components (diff)
downloadmath-server-04b08b5bdef84094d4997fe27b1823df8e5ae232.tar.gz
math-server-04b08b5bdef84094d4997fe27b1823df8e5ae232.zip
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).
Diffstat (limited to 'client/CMakeLists.txt')
-rw-r--r--client/CMakeLists.txt1
1 files changed, 1 insertions, 0 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)