summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-07 13:16:14 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-07 13:16:14 (GMT)
commit517cfe0b8c327ee4d68de777b812c4854e3d46a8 (patch)
treedad96aeed2036987012299830121463d88361da0 /Source/kwsys/CMakeLists.txt
parentc37c4771cb876146ae0d23a2008482d6fcd53e35 (diff)
parentdc059ae70b2ec79bce2b534876a2f4006293d3b6 (diff)
downloadCMake-517cfe0b8c327ee4d68de777b812c4854e3d46a8.zip
CMake-517cfe0b8c327ee4d68de777b812c4854e3d46a8.tar.gz
CMake-517cfe0b8c327ee4d68de777b812c4854e3d46a8.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2017-11-07 (5249a82d)
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index e4406e7..51f4088 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -1150,17 +1150,17 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
SET(testProcess_COMPILE_FLAGS "")
# Some Apple compilers produce bad optimizations in this source.
IF(APPLE AND CMAKE_C_COMPILER_ID MATCHES "^(GNU|LLVM)$")
- STRING(APPEND testProcess_COMPILE_FLAGS " -O0")
+ 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"))
# 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
- STRING(APPEND testProcess_COMPILE_FLAGS " -qsuppress=1500-010")
+ SET(testProcess_COMPILE_FLAGS "${testProcess_COMPILE_FLAGS} -qsuppress=1500-010")
ENDIF()
IF(CMAKE_C_FLAGS MATCHES "-fsanitize=")
- STRING(APPEND testProcess_COMPILE_FLAGS " -DCRASH_USING_ABORT")
+ SET(testProcess_COMPILE_FLAGS "${testProcess_COMPILE_FLAGS} -DCRASH_USING_ABORT")
ENDIF()
SET_PROPERTY(SOURCE testProcess.c PROPERTY COMPILE_FLAGS "${testProcess_COMPILE_FLAGS}")