Skip to content
Snippets Groups Projects
Commit 5249a82d authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'no-string-append'


bfdbfe9b Avoid requiring CMake 3.4 string(APPEND)

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !67
parents 64ea6ba9 bfdbfe9b
No related branches found
No related tags found
No related merge requests found
......@@ -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}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment