Hide some CMake warnings

This commit is contained in:
Magne Sjaastad
2025-05-15 15:59:07 +02:00
committed by GitHub
parent a958912378
commit 5e37c58d18
2 changed files with 15 additions and 9 deletions
+14 -8
View File
@@ -9,6 +9,20 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL 4.0)
)
endif()
cmake_policy(SET CMP0020 NEW)
if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()
if(POLICY CMP0135)
cmake_policy(SET CMP0135 OLD)
endif()
if(POLICY CMP0167)
cmake_policy(SET CMP0167 OLD)
endif()
if(POLICY CMP0169)
cmake_policy(SET CMP0169 OLD)
endif()
include(CheckCSourceCompiles)
include(FetchContent)
@@ -41,14 +55,6 @@ message(STATUS "Set CEE_USE_QT6 to ON")
set(CEE_USE_QT5 OFF)
set(CEE_USE_QT6 ON)
cmake_policy(SET CMP0020 NEW)
if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()
if(POLICY CMP0135)
cmake_policy(SET CMP0135 OLD)
endif()
if(UNIX)
option(
RESINSIGHT_PREFER_LEGACY_OPENGL
+1 -1
View File
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.15)
project(extract-projectfile-versions)
set(CMAKE_CXX_STANDARD 20)