diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-10 05:50:34 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-10 06:08:46 +0300 |
commit | eaf5ddbc3317e187e5e8b6f25a2417cea896ab02 (patch) | |
tree | a0c6d1c732367d92832e13b7fb1d2437f8734162 | |
parent | docker-compose: binaries in /usr/local/bin (diff) | |
download | math-server-eaf5ddbc3317e187e5e8b6f25a2417cea896ab02.tar.gz math-server-eaf5ddbc3317e187e5e8b6f25a2417cea896ab02.zip |
clean up build warnings
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e20d3d1..d8717ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,20 @@ set(CC_CXX_STANDARD 17) include(cmake/common.cmake) +# AppVeyor builds w/ Visual Studio 2017 bombard me with stupid warnings otherwise: +if(MSVC_VERSION GREATER_EQUAL "1910" AND MSVC_VERSION LESS "1920") + add_definitions(/D_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING) +endif() + +if(WIN32) + add_definitions(/DNTDDI_VERSION=NTDDI_WIN7 /D_WIN32_WINNT=_WIN32_WINNT_WIN7) +endif() + +# Silence deprecation warnings in Boost.Asio: +if(WIN32) + add_definitions(/D_WINSOCK_DEPRECATED_NO_WARNINGS) +endif() + add_subdirectory(client) add_subdirectory(server) |