ngompa / rpms / cmake

Forked from rpms/cmake 3 years ago
Clone
f58644
Index: cmake-3.17.0-rc1/Modules/Compiler/Absoft-Fortran.cmake
f58644
===================================================================
f58644
--- cmake-3.17.0-rc1.orig/Modules/Compiler/Absoft-Fortran.cmake
f58644
+++ cmake-3.17.0-rc1/Modules/Compiler/Absoft-Fortran.cmake
f58644
@@ -1,7 +1,7 @@
f58644
 string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
f58644
 string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
f58644
 string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " ")
f58644
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
f58644
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
f58644
 string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
f58644
 set(CMAKE_Fortran_MODDIR_FLAG "-YMOD_OUT_DIR=")
f58644
 set(CMAKE_Fortran_MODPATH_FLAG "-p")
f58644
Index: cmake-3.17.0-rc1/Modules/Compiler/G95-Fortran.cmake
f58644
===================================================================
f58644
--- cmake-3.17.0-rc1.orig/Modules/Compiler/G95-Fortran.cmake
f58644
+++ cmake-3.17.0-rc1/Modules/Compiler/G95-Fortran.cmake
f58644
@@ -1,7 +1,7 @@
f58644
 string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
f58644
 string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
f58644
 string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -Os")
f58644
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
f58644
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
f58644
 string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
f58644
 set(CMAKE_Fortran_MODDIR_FLAG "-fmod=")
f58644
 set(CMAKE_Fortran_VERBOSE_FLAG "-v")
f58644
Index: cmake-3.17.0-rc1/Modules/Compiler/GNU.cmake
f58644
===================================================================
f58644
--- cmake-3.17.0-rc1.orig/Modules/Compiler/GNU.cmake
f58644
+++ cmake-3.17.0-rc1/Modules/Compiler/GNU.cmake
f58644
@@ -55,7 +55,7 @@ macro(__compiler_gnu lang)
f58644
   string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
f58644
   string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
f58644
   string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG")
f58644
-  string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
f58644
+  string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2 -DNDEBUG")
f58644
   string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
f58644
   set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
f58644
   set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
f58644
Index: cmake-3.17.0-rc1/Modules/Compiler/GNU-Fortran.cmake
f58644
===================================================================
f58644
--- cmake-3.17.0-rc1.orig/Modules/Compiler/GNU-Fortran.cmake
f58644
+++ cmake-3.17.0-rc1/Modules/Compiler/GNU-Fortran.cmake
f58644
@@ -14,7 +14,7 @@ set(CMAKE_Fortran_POSTPROCESS_FLAG "-fpr
f58644
 
f58644
 # No -DNDEBUG for Fortran.
f58644
 string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -Os")
f58644
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
f58644
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
f58644
 
f58644
 # No -isystem for Fortran because it will not find .mod files.
f58644
 unset(CMAKE_INCLUDE_SYSTEM_FLAG_Fortran)
f58644
Index: cmake-3.17.0-rc1/Modules/Compiler/Intel.cmake
f58644
===================================================================
f58644
--- cmake-3.17.0-rc1.orig/Modules/Compiler/Intel.cmake
f58644
+++ cmake-3.17.0-rc1/Modules/Compiler/Intel.cmake
f58644
@@ -22,7 +22,7 @@ else()
f58644
     string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
f58644
     string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
f58644
     string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
f58644
-    string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
f58644
+    string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2")
f58644
     string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
f58644
 
f58644
     set(CMAKE_${lang}_COMPILER_PREDEFINES_COMMAND "${CMAKE_${lang}_COMPILER}")
f58644
Index: cmake-3.17.0-rc1/Modules/Compiler/NVIDIA-CUDA.cmake
f58644
===================================================================
f58644
--- cmake-3.17.0-rc1.orig/Modules/Compiler/NVIDIA-CUDA.cmake
f58644
+++ cmake-3.17.0-rc1/Modules/Compiler/NVIDIA-CUDA.cmake
f58644
@@ -36,7 +36,7 @@ if(NOT "x${CMAKE_CUDA_SIMULATE_ID}" STRE
f58644
   set(CMAKE_SHARED_LIBRARY_CUDA_FLAGS -fPIC)
f58644
   string(APPEND CMAKE_CUDA_FLAGS_INIT " ")
f58644
   string(APPEND CMAKE_CUDA_FLAGS_DEBUG_INIT " -g")
f58644
-  string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
f58644
+  string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O2 -DNDEBUG")
f58644
   string(APPEND CMAKE_CUDA_FLAGS_MINSIZEREL_INIT " -O1 -DNDEBUG")
f58644
   string(APPEND CMAKE_CUDA_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
f58644
 endif()
f58644
Index: cmake-3.17.0-rc1/Modules/Compiler/PathScale.cmake
f58644
===================================================================
f58644
--- cmake-3.17.0-rc1.orig/Modules/Compiler/PathScale.cmake
f58644
+++ cmake-3.17.0-rc1/Modules/Compiler/PathScale.cmake
f58644
@@ -16,6 +16,6 @@ macro(__compiler_pathscale lang)
f58644
   string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
f58644
   string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0")
f58644
   string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
f58644
-  string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
f58644
+  string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2")
f58644
   string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -g -O2")
f58644
 endmacro()
f58644
Index: cmake-3.17.0-rc1/Modules/Compiler/PGI.cmake
f58644
===================================================================
f58644
--- cmake-3.17.0-rc1.orig/Modules/Compiler/PGI.cmake
f58644
+++ cmake-3.17.0-rc1/Modules/Compiler/PGI.cmake
f58644
@@ -18,7 +18,7 @@ macro(__compiler_pgi lang)
f58644
   string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
f58644
   string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0")
f58644
   string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -O2 -s")
f58644
-  string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -fast -O3")
f58644
+  string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -fast -O2")
f58644
   string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -gopt")
f58644
 
f58644
   if(CMAKE_HOST_WIN32)
f58644
Index: cmake-3.17.0-rc1/Modules/Compiler/SunPro-ASM.cmake
f58644
===================================================================
f58644
--- cmake-3.17.0-rc1.orig/Modules/Compiler/SunPro-ASM.cmake
f58644
+++ cmake-3.17.0-rc1/Modules/Compiler/SunPro-ASM.cmake
f58644
@@ -11,7 +11,7 @@ set(CMAKE_SHARED_LIBRARY_SONAME_ASM_FLAG
f58644
 string(APPEND CMAKE_ASM_FLAGS_INIT " ")
f58644
 string(APPEND CMAKE_ASM_FLAGS_DEBUG_INIT " -g")
f58644
 string(APPEND CMAKE_ASM_FLAGS_MINSIZEREL_INIT " -xO2 -xspace -DNDEBUG")
f58644
-string(APPEND CMAKE_ASM_FLAGS_RELEASE_INIT " -xO3 -DNDEBUG")
f58644
+string(APPEND CMAKE_ASM_FLAGS_RELEASE_INIT " -xO2 -DNDEBUG")
f58644
 string(APPEND CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT " -g -xO2 -DNDEBUG")
f58644
 
f58644
 # Initialize ASM link type selection flags.  These flags are used when
f58644
Index: cmake-3.17.0-rc1/Modules/Compiler/SunPro-C.cmake
f58644
===================================================================
f58644
--- cmake-3.17.0-rc1.orig/Modules/Compiler/SunPro-C.cmake
f58644
+++ cmake-3.17.0-rc1/Modules/Compiler/SunPro-C.cmake
f58644
@@ -19,7 +19,7 @@ set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "
f58644
 string(APPEND CMAKE_C_FLAGS_INIT " ")
f58644
 string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " -g")
f58644
 string(APPEND CMAKE_C_FLAGS_MINSIZEREL_INIT " -xO2 -xspace -DNDEBUG")
f58644
-string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " -xO3 -DNDEBUG")
f58644
+string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " -xO2 -DNDEBUG")
f58644
 string(APPEND CMAKE_C_FLAGS_RELWITHDEBINFO_INIT " -g -xO2 -DNDEBUG")
f58644
 
f58644
 set(CMAKE_DEPFILE_FLAGS_C "-xMD -xMF <DEPFILE>")
f58644
Index: cmake-3.17.0-rc1/Modules/Compiler/SunPro-CXX.cmake
f58644
===================================================================
f58644
--- cmake-3.17.0-rc1.orig/Modules/Compiler/SunPro-CXX.cmake
f58644
+++ cmake-3.17.0-rc1/Modules/Compiler/SunPro-CXX.cmake
f58644
@@ -19,7 +19,7 @@ set(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG
f58644
 string(APPEND CMAKE_CXX_FLAGS_INIT " ")
f58644
 string(APPEND CMAKE_CXX_FLAGS_DEBUG_INIT " -g")
f58644
 string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " -xO2 -xspace -DNDEBUG")
f58644
-string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " -xO3 -DNDEBUG")
f58644
+string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " -xO2 -DNDEBUG")
f58644
 string(APPEND CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT " -g -xO2 -DNDEBUG")
f58644
 
f58644
 set(CMAKE_DEPFILE_FLAGS_CXX "-xMD -xMF <DEPFILE>")
f58644
Index: cmake-3.17.0-rc1/Modules/Compiler/SunPro-Fortran.cmake
f58644
===================================================================
f58644
--- cmake-3.17.0-rc1.orig/Modules/Compiler/SunPro-Fortran.cmake
f58644
+++ cmake-3.17.0-rc1/Modules/Compiler/SunPro-Fortran.cmake
f58644
@@ -17,7 +17,7 @@ set(CMAKE_EXECUTABLE_RUNTIME_Fortran_FLA
f58644
 string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
f58644
 string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
f58644
 string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -xO2 -xspace -DNDEBUG")
f58644
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -xO3 -DNDEBUG")
f58644
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -xO2 -DNDEBUG")
f58644
 string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -g -xO2 -DNDEBUG")
f58644
 set(CMAKE_Fortran_MODDIR_FLAG "-moddir=")
f58644
 set(CMAKE_Fortran_MODPATH_FLAG "-M")
f58644
Index: cmake-3.17.0-rc1/Modules/Platform/Windows-Clang.cmake
f58644
===================================================================
f58644
--- cmake-3.17.0-rc1.orig/Modules/Platform/Windows-Clang.cmake
f58644
+++ cmake-3.17.0-rc1/Modules/Platform/Windows-Clang.cmake
f58644
@@ -79,7 +79,7 @@ macro(__windows_compiler_clang_gnu lang)
f58644
 
f58644
     string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -Xclang -gcodeview -O0 ${__ADDED_FLAGS_DEBUG}")
f58644
     string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG ${__ADDED_FLAGS}")
f58644
-    string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG ${__ADDED_FLAGS}")
f58644
+    string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2 -DNDEBUG ${__ADDED_FLAGS}")
f58644
     string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG -Xclang -gcodeview ${__ADDED_FLAGS}")
f58644
   endif()
f58644
   set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")