From 1422337d9d2ee1728f030b13816c8436ad34a2d2 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Sat, 5 Oct 2024 13:59:05 +0200 Subject: [PATCH] Remove obsolete compile flags --- ApplicationExeCode/CMakeLists.txt | 9 +-------- ApplicationLibCode/CMakeLists.txt | 7 ------- ApplicationLibCode/Commands/CMakeLists.txt | 7 ------- CMakeLists.txt | 4 +--- 4 files changed, 2 insertions(+), 25 deletions(-) diff --git a/ApplicationExeCode/CMakeLists.txt b/ApplicationExeCode/CMakeLists.txt index 0bb3c2991a..b9863ed29c 100644 --- a/ApplicationExeCode/CMakeLists.txt +++ b/ApplicationExeCode/CMakeLists.txt @@ -196,14 +196,7 @@ if(MSVC) # /wd4100 /wd4127") set(BUILD_FLAGS_FOR_MSVC "/wd4190 /wd4100 /wd4127 /wd4245 /wd4005") - - if(CMAKE_CXX_COMPILER_VERSION LESS_EQUAL 19.14) - # The following warning is generated over 800 times from a qwt header only - # using VS2015 Disabling temporarily warning C4505 'function' : unreferenced - # local function has been removed - set(BUILD_FLAGS_FOR_MSVC "${BUILD_FLAGS_FOR_MSVC} /wd4505") - endif() - + message(STATUS "BUILD_FLAGS_FOR_MSVC ${BUILD_FLAGS_FOR_MSVC}") set_target_properties( ResInsight PROPERTIES COMPILE_FLAGS ${BUILD_FLAGS_FOR_MSVC} diff --git a/ApplicationLibCode/CMakeLists.txt b/ApplicationLibCode/CMakeLists.txt index 5ba4d90f68..796f5a5ccd 100644 --- a/ApplicationLibCode/CMakeLists.txt +++ b/ApplicationLibCode/CMakeLists.txt @@ -277,13 +277,6 @@ if(MSVC) message(STATUS "CMAKE_CXX_COMPILER_VERSION ${CMAKE_CXX_COMPILER_VERSION}") - if(CMAKE_CXX_COMPILER_VERSION LESS_EQUAL 19.14) - # The following warning is generated over 800 times from a qwt header only - # using VS2015 Disabling temporarily warning C4505 'function' : unreferenced - # local function has been removed - set(BUILD_FLAGS_FOR_MSVC "${BUILD_FLAGS_FOR_MSVC} /wd4505") - endif() - if(CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL 19.38) # https://github.com/OPM/ResInsight/issues/10844 set(BUILD_FLAGS_FOR_MSVC "${BUILD_FLAGS_FOR_MSVC} /wd4996") diff --git a/ApplicationLibCode/Commands/CMakeLists.txt b/ApplicationLibCode/Commands/CMakeLists.txt index b4ae51064e..b497b2adba 100644 --- a/ApplicationLibCode/Commands/CMakeLists.txt +++ b/ApplicationLibCode/Commands/CMakeLists.txt @@ -123,13 +123,6 @@ if(MSVC) set(BUILD_FLAGS_FOR_MSVC "/W3 /wd4190 /wd4100 /wd4127") - if(CMAKE_CXX_COMPILER_VERSION LESS_EQUAL 19.14) - # The following warning is generated over 800 times from a qwt header only - # using VS2015 Disabling temporarily warning C4505 'function' : unreferenced - # local function has been removed - set(BUILD_FLAGS_FOR_MSVC "${BUILD_FLAGS_FOR_MSVC} /wd4505") - endif() - if(CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL 19.38) # https://github.com/OPM/ResInsight/issues/10844 set(BUILD_FLAGS_FOR_MSVC "${BUILD_FLAGS_FOR_MSVC} /wd4996") diff --git a/CMakeLists.txt b/CMakeLists.txt index 9bf6f96754..f95a22a662 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,11 +10,9 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) set(VIZ_MODULES_FOLDER_NAME Fwk/VizFwk) -# !!! For now, we force Qt to version 5 +message(STATUS "Set CEE_USE_QT6 to ON") set(CEE_USE_QT5 OFF) -message(STATUS "Forcing setting of CEE_USE_QT6 to ON") set(CEE_USE_QT6 ON) -message(STATUS "CEE_USE_QT6=${CEE_USE_QT6}") cmake_policy(SET CMP0020 NEW) if(POLICY CMP0077)