cmake: set minimum to 3.10 to fix warnings

This commit is contained in:
selsta
2025-09-08 19:37:24 +02:00
parent 7fe199facc
commit b74ca72bad
5 changed files with 6 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ if (CCACHE_FOUND)
# Try to compile a test program with ccache, in order to verify if it really works. (needed on exotic setups)
set(TEST_PROJECT "${CMAKE_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/CMakeTmp")
file(WRITE "${TEST_PROJECT}/CMakeLists.txt" [=[
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)
project(test)
option (CCACHE "")
file(WRITE "${CMAKE_SOURCE_DIR}/test.cpp" "int main() { return 0; }")