diff options
author | Brad King <brad.king@kitware.com> | 2011-04-07 21:07:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-04-07 21:07:23 (GMT) |
commit | 3a40c7faa4f1a88175dc3275adbc45a177ccf206 (patch) | |
tree | e51920efef0a07f69d97ead0a7f71501396b9dcc /Modules/Compiler/XL-CXX.cmake | |
parent | c2f8a137152d9dc4cc08b156284f916561e1455c (diff) | |
download | CMake-3a40c7faa4f1a88175dc3275adbc45a177ccf206.zip CMake-3a40c7faa4f1a88175dc3275adbc45a177ccf206.tar.gz CMake-3a40c7faa4f1a88175dc3275adbc45a177ccf206.tar.bz2 |
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.
Diffstat (limited to 'Modules/Compiler/XL-CXX.cmake')
-rw-r--r-- | Modules/Compiler/XL-CXX.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Compiler/XL-CXX.cmake b/Modules/Compiler/XL-CXX.cmake index 961cfee..c4e4550 100644 --- a/Modules/Compiler/XL-CXX.cmake +++ b/Modules/Compiler/XL-CXX.cmake @@ -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") |