UPDATE: devel/cmake 3.28.3 -> 3.30.1
This commit is contained in:
parent
f260267c10
commit
294b0e463d
17 changed files with 170 additions and 4149 deletions
|
@ -1,25 +1,28 @@
|
|||
Index: Modules/Compiler/GNU.cmake
|
||||
--- Modules/Compiler/GNU.cmake.orig
|
||||
+++ Modules/Compiler/GNU.cmake
|
||||
@@ -100,10 +100,17 @@ macro(__compiler_gnu lang)
|
||||
@@ -107,11 +107,19 @@ macro(__compiler_gnu lang)
|
||||
endif()
|
||||
|
||||
# Initial configuration flags.
|
||||
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
||||
- string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
||||
- string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
|
||||
- string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG")
|
||||
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
|
||||
- string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
|
||||
- string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
|
||||
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
|
||||
- string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
|
||||
+ if(DEFINED ENV{MODCMAKE_PORT_BUILD})
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -DNDEBUG")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -g -DNDEBUG")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " ")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " ")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -g")
|
||||
+ else()
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
|
||||
+ string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
|
||||
+ endif()
|
||||
set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
||||
set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
||||
if(NOT APPLE OR NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 4) # work around #4462
|
||||
if(NOT "x${lang}" STREQUAL "xFortran")
|
||||
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
|
||||
string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -DNDEBUG")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue