summaryrefslogtreecommitdiffstats
path: root/Tests/TryCompile/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-01 18:59:50 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-08-01 18:59:50 (GMT)
commit88e1c54a7cd3213d87143558a8fddf39e7fdccc0 (patch)
tree3bb05b4e935ab00aa445129a073a6ff9321467af /Tests/TryCompile/CMakeLists.txt
parentbfac78d07479eb652405ee51548c4011766666ce (diff)
parent7a649111cdea2b10f2ec57084416be619867fbfb (diff)
downloadCMake-88e1c54a7cd3213d87143558a8fddf39e7fdccc0.zip
CMake-88e1c54a7cd3213d87143558a8fddf39e7fdccc0.tar.gz
CMake-88e1c54a7cd3213d87143558a8fddf39e7fdccc0.tar.bz2
Merge topic 'use-string-append'
7a649111 Use string(APPEND) in Tests 5d0d980d Use string(APPEND) in Modules
Diffstat (limited to 'Tests/TryCompile/CMakeLists.txt')
-rw-r--r--Tests/TryCompile/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/TryCompile/CMakeLists.txt b/Tests/TryCompile/CMakeLists.txt
index d11cfc5..2f8e4fb 100644
--- a/Tests/TryCompile/CMakeLists.txt
+++ b/Tests/TryCompile/CMakeLists.txt
@@ -109,9 +109,9 @@ endif()
# try to compile a file that should compile
set(_c_flags "${CMAKE_C_FLAGS}")
if(WATCOM)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -dTESTDEF")
+ string(APPEND CMAKE_C_FLAGS " -dTESTDEF")
else()
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \"-DTESTDEF\"")
+ string(APPEND CMAKE_C_FLAGS " \"-DTESTDEF\"")
endif()
try_compile(SHOULD_PASS
${TryCompile_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp