diff options
| author | Egor Tensin <egor@tensin.name> | 2026-05-17 18:21:19 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-05-17 19:16:16 +0200 |
| commit | 5938c4a524354b6b7591b8d9beab3151cb009fe8 (patch) | |
| tree | 61cb1bd8ba7001a5a894333645a665116acfc849 /CMakeLists.txt | |
| parent | workflows/ci: remove on: pull_request (diff) | |
| download | winapi-debug-pre-c++20.tar.gz winapi-debug-pre-c++20.zip | |
upgrade dependenciespre-c++20
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 20b6a16..91011e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,19 @@ -cmake_minimum_required(VERSION 3.8) +# oldstable as of May '26 +# Plus, I'm pretty sure it's required for things like CONFIGURE_DEPENDS and +# CMAKE_MSVC_RUNTIME_LIBRARY and stuff. +cmake_minimum_required(VERSION 3.25) project(winapi_debug CXX) enable_testing() +if (MSVC) + add_compile_options(/MP /W4) +else() + add_compile_options(-Wall -Wextra) +endif() + +add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX) + if(MSVC) # This is an ugly hack to make the tests work. # With incremental linking, the &func address does not point to the @@ -24,8 +35,6 @@ if(MSVC) "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}") endif() -include(cmake/common.cmake) - find_package(Boost REQUIRED) add_subdirectory(3rdparty/winapi/common EXCLUDE_FROM_ALL) |
