summaryrefslogtreecommitdiff
path: root/Tests/CompileDefinitions/target_prop
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-08-09 09:44:15 +0200
committerStephen Kelly <steveire@gmail.com>2012-08-20 22:30:11 +0200
commit3dae652b4ea8e039dd9f4d845497ec988fbbe82c (patch)
tree22241a616f674ac6fe82375690e8485d19e32725 /Tests/CompileDefinitions/target_prop
parentd46f8afae98cd8f50cff9915a5a9dc680b9e0518 (diff)
downloadcmake-3dae652b4ea8e039dd9f4d845497ec988fbbe82c.tar.gz
Don't duplicate -D defines sent to the compiler.
There is no need to do so. Be consistent with include directories and ensure uniqueness. This requires changing the API of the cmLocalGenerator::AppendDefines method, and changing the generators to match. The test unfortunately can't test for uniqueness, but it at least verifies that nothing gets lost.
Diffstat (limited to 'Tests/CompileDefinitions/target_prop')
-rw-r--r--Tests/CompileDefinitions/target_prop/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/CompileDefinitions/target_prop/CMakeLists.txt b/Tests/CompileDefinitions/target_prop/CMakeLists.txt
new file mode 100644
index 0000000000..8248a21493
--- /dev/null
+++ b/Tests/CompileDefinitions/target_prop/CMakeLists.txt
@@ -0,0 +1,9 @@
+
+project(target_prop)
+
+add_executable(target_prop_executable ../main.cpp)
+
+set_target_properties(target_prop_executable PROPERTIES CMAKE_IS_FUN -DCMAKE_IS_REALLY="Very Fun")
+
+set_property(TARGET target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS_REALLY="Very Fun" CMAKE_IS=Fun)
+set_property(TARGET target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS_FUN CMAKE_IS_="Fun")