summaryrefslogtreecommitdiffstats
path: root/Tests/CompileDefinitions/target_prop
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-05-22 08:25:27 (GMT)
committerBrad King <brad.king@kitware.com>2013-05-24 13:35:43 (GMT)
commit015309fc9f87babaadc2510eb80298b1f2389e8c (patch)
tree99779cfdb503f98a6ed3c9535a964b3742eabeaa /Tests/CompileDefinitions/target_prop
parent6aba97642737873921f312e0bbaf18edfabf6e6f (diff)
downloadCMake-015309fc9f87babaadc2510eb80298b1f2389e8c.zip
CMake-015309fc9f87babaadc2510eb80298b1f2389e8c.tar.gz
CMake-015309fc9f87babaadc2510eb80298b1f2389e8c.tar.bz2
Tests/CompileDefinitions: Avoid spaces in defines on VS 6
The VS 6 IDE does not like spaces in definition values so CMake drops them and warns. The Tests/CompileDefinitions test C code that looks for the dropped definitions already knows to skip them, but CMake still warns. Silence the warnings by avoiding such values in the first place on VS 6.
Diffstat (limited to 'Tests/CompileDefinitions/target_prop')
-rw-r--r--Tests/CompileDefinitions/target_prop/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/CompileDefinitions/target_prop/CMakeLists.txt b/Tests/CompileDefinitions/target_prop/CMakeLists.txt
index 66a3aa6..6bf9c5c 100644
--- a/Tests/CompileDefinitions/target_prop/CMakeLists.txt
+++ b/Tests/CompileDefinitions/target_prop/CMakeLists.txt
@@ -5,7 +5,11 @@ add_executable(target_prop_executable ../compiletest.cpp)
set_target_properties(target_prop_executable PROPERTIES COMPILE_DEFINITIONS CMAKE_IS_FUN)
-set_property(TARGET target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS_REALLY="Very Fun" CMAKE_IS=Fun)
+if (NOT NO_SPACES_IN_DEFINE_VALUES)
+ set_property(TARGET target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS_REALLY="Very Fun" CMAKE_IS=Fun)
+else()
+ set_property(TARGET target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS=Fun)
+endif()
set_property(TARGET target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS_FUN CMAKE_IS_="Fun")
set_property(TARGET target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS