diff options
author | KWSys Upstream <kwrobot@kitware.com> | 2017-11-01 11:44:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-01 12:38:25 (GMT) |
commit | 7d3f33e6129232a6814af47a19a72fd500414508 (patch) | |
tree | 832bb68bb60eb363b9b1c5f3c7d3a075419c9b7c /CMakeLists.txt | |
parent | e44b0cb2f0d6d0065faabd510efdcfc6359a8025 (diff) | |
download | CMake-7d3f33e6129232a6814af47a19a72fd500414508.zip CMake-7d3f33e6129232a6814af47a19a72fd500414508.tar.gz CMake-7d3f33e6129232a6814af47a19a72fd500414508.tar.bz2 |
KWSys 2017-11-01 (6ffca34c)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit 6ffca34c008f0aac44db0e0c2826673a0e3f6ecf (master).
Upstream Shortlog
-----------------
Brad King (2):
7a4cca11 Process: Refactor test compile flag addition
90886a99 Process: Fix tests under ubsan
Bradley Lowekamp (1):
b4507c9c Remove dead code from Configure.h.in
Domen Vrankar (1):
9e0b4d1a SystemTools: set default MakeDirectory permissions mode
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f36f9b6..e4406e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1147,17 +1147,22 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR) SET_TESTS_PROPERTIES(kwsys.testProcess-${n} PROPERTIES TIMEOUT 120) ENDFOREACH() + SET(testProcess_COMPILE_FLAGS "") # Some Apple compilers produce bad optimizations in this source. IF(APPLE AND CMAKE_C_COMPILER_ID MATCHES "^(GNU|LLVM)$") - SET_SOURCE_FILES_PROPERTIES(testProcess.c PROPERTIES COMPILE_FLAGS -O0) + STRING(APPEND 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")) # 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_PROPERTY(SOURCE testProcess.c PROPERTY COMPILE_FLAGS -qsuppress=1500-010) + STRING(APPEND testProcess_COMPILE_FLAGS " -qsuppress=1500-010") ENDIF() + IF(CMAKE_C_FLAGS MATCHES "-fsanitize=") + STRING(APPEND testProcess_COMPILE_FLAGS " -DCRASH_USING_ABORT") + ENDIF() + SET_PROPERTY(SOURCE testProcess.c PROPERTY COMPILE_FLAGS "${testProcess_COMPILE_FLAGS}") # Test SharedForward CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/testSharedForward.c.in |