diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-08 04:57:32 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-08 04:57:32 +0300 |
commit | 04b08b5bdef84094d4997fe27b1823df8e5ae232 (patch) | |
tree | e42280c471eed6c2619225a316ad8c1645d080b8 /server/main | |
parent | split server into multiple components (diff) | |
download | math-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 '')
-rw-r--r-- | server/main/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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) |