mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-04 04:03:22 +03:00
XL: Set C++ and Fortran flags consistently with C
Since commit e1729238 (Add initial XL C compiler flags for safer builds,
2009-09-30) CMake sets the initial XL C flags to include "-qthreaded"
and "-qhalt=e". Do the same for C++ and Fortran with this toolchain.
This commit is contained in:
1 parent
c2f8a13715
commit
3a40c7faa4
2 files changed
+8
No files matched your search
@@ -1,5 +1,9 @@
|
||||
SET(CMAKE_CXX_VERBOSE_FLAG "-V")
|
||||
|
||||
# -qthreaded = Ensures that all optimizations will be thread-safe
|
||||
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
||||
SET(CMAKE_CXX_FLAGS_INIT "-qthreaded -qhalt=e")
|
||||
|
||||
SET(CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_CXX_FLAGS_RELEASE_INIT "-O -DNDEBUG")
|
||||
SET(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O -DNDEBUG")
|
||||
|
||||
@@ -2,6 +2,10 @@ SET(CMAKE_Fortran_VERBOSE_FLAG "-V")
|
||||
|
||||
SET(CMAKE_Fortran_DEFINE_FLAG "-WF,-D")
|
||||
|
||||
# -qthreaded = Ensures that all optimizations will be thread-safe
|
||||
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
||||
SET(CMAKE_Fortran_FLAGS_INIT "-qthreaded -qhalt=e")
|
||||
|
||||
SET(CMAKE_Fortran_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_Fortran_FLAGS_RELEASE_INIT "-O")
|
||||
SET(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-O")
|
||||
|
||||
Reference in new issue
Block a user