summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKWSys Upstream <kwrobot@kitware.com>2018-07-10 12:37:49 (GMT)
committerBrad King <brad.king@kitware.com>2018-07-10 12:46:35 (GMT)
commit3599b314745aeb7abb109737536f573c2c310f6a (patch)
tree0fe3806fe87e077c3ae3d515877dbfbc85204d18
parent6d7fdedde6c41e6d5e7840a7d653d490296aa6e7 (diff)
downloadCMake-3599b314745aeb7abb109737536f573c2c310f6a.zip
CMake-3599b314745aeb7abb109737536f573c2c310f6a.tar.gz
CMake-3599b314745aeb7abb109737536f573c2c310f6a.tar.bz2
KWSys 2018-07-10 (51982681)
Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 5198268138295f67c567c04f4cb0c0f3fdfebef4 (master). Upstream Shortlog ----------------- Brad King (1): aebe4597 XL: Restore suppression of infinite loop warning in process test
-rw-r--r--CMakeLists.txt16
1 files changed, 10 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 96088c8..516104b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1193,13 +1193,17 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
# Some Apple compilers produce bad optimizations in this source.
IF(APPLE AND CMAKE_C_COMPILER_ID MATCHES "^(GNU|LLVM)$")
SET(testProcess_COMPILE_FLAGS "${testProcess_COMPILE_FLAGS} -O0")
- ELSEIF(CMAKE_C_COMPILER_ID STREQUAL "XL" AND
- NOT (CMAKE_SYSTEM MATCHES "Linux.*ppc64le" AND
- NOT CMAKE_C_COMPILER_VERSION VERSION_LESS "13.1.1"))
+ ELSEIF(CMAKE_C_COMPILER_ID STREQUAL "XL")
# Tell IBM XL not to warn about our test infinite loop
- # v13.1.1 and newer on Linux ppc64le is clang based and does not accept
- # the -qsuppress option
- SET(testProcess_COMPILE_FLAGS "${testProcess_COMPILE_FLAGS} -qsuppress=1500-010")
+ IF(CMAKE_SYSTEM MATCHES "Linux.*ppc64le"
+ AND CMAKE_C_COMPILER_VERSION VERSION_LESS "16.1.0"
+ AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS "13.1.1")
+ # v13.1.[1-6] on Linux ppc64le is clang based and does not accept
+ # the -qsuppress option, so just suppress all warnings.
+ SET(testProcess_COMPILE_FLAGS "${testProcess_COMPILE_FLAGS} -w")
+ ELSE()
+ SET(testProcess_COMPILE_FLAGS "${testProcess_COMPILE_FLAGS} -qsuppress=1500-010")
+ ENDIF()
ENDIF()
IF(CMAKE_C_FLAGS MATCHES "-fsanitize=")
SET(testProcess_COMPILE_FLAGS "${testProcess_COMPILE_FLAGS} -DCRASH_USING_ABORT")