mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
Hide some CMake warnings
This commit is contained in:
+14
-8
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user