aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-18 16:57:20 +0200
committerEgor Tensin <egor@tensin.name>2026-06-18 16:57:20 +0200
commitf1c930a73c7f94ecd92cc2ae233e7993c165d4fe (patch)
treeab6188553f80fe780e6e98f22f29e7f96cf59006 /CMakeLists.txt
parentadd .git-blame-ignore-revs (diff)
downloadmath-server-f1c930a73c7f94ecd92cc2ae233e7993c165d4fe.tar.gz
math-server-f1c930a73c7f94ecd92cc2ae233e7993c165d4fe.zip
cmake: remove obsolete stuff
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt17
1 files changed, 4 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 895e6b0..f2542cf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,24 +17,15 @@ endif()
add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX)
-# 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()
-
-# AppVeyor builds complain about _WIN32_WINNT not being defined.
-# Not sure what's the right thing to do about it, arbitrarily setting it to
-# target Windows 7 as described here:
+# Fix this warning:
+#
+# Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately.
+#
# https://docs.microsoft.com/en-gb/windows/win32/winprog/using-the-windows-headers
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)