From fbbdcc9d7f7a13076bea0ca0ac5843399145e558 Mon Sep 17 00:00:00 2001 From: Ambr0se Date: Sun, 14 Jun 2026 14:28:16 +0800 Subject: [PATCH] chore: Support CMake 4+ when configuring dyncall --- .gitignore | 1 + CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 5abc2076e..876e2d122 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ configs/addons/metamod/counterstrikesharp.vdf libraries/mono/ CMakeSettings.json +.vscode/compile_commands.json build-*/ build/ diff --git a/CMakeLists.txt b/CMakeLists.txt index d60e14321..4b4675fa9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ project(counterstrikesharp C CXX ASM) include("makefiles/shared.cmake") +set(CMAKE_POLICY_VERSION_MINIMUM 3.5) set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") set(FUNCHOOK_BUILD_TESTS OFF CACHE BOOL "Disable building tests for funchook." FORCE)