summaryrefslogtreecommitdiffstats
path: root/Tests/CompileDefinitions/add_def_cmd
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-25 13:09:10 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-25 13:12:12 (GMT)
commit494f6e8d5b9f2e556a2b2db2c165a56c01fd1827 (patch)
treec067bac908fd8e4a44c24c038622de0d38d12ed7 /Tests/CompileDefinitions/add_def_cmd
parentc99e19a4ac7e6e55345a073b13c36befaa8702d8 (diff)
downloadCMake-494f6e8d5b9f2e556a2b2db2c165a56c01fd1827.zip
CMake-494f6e8d5b9f2e556a2b2db2c165a56c01fd1827.tar.gz
CMake-494f6e8d5b9f2e556a2b2db2c165a56c01fd1827.tar.bz2
Tests: Shorten paths in CompileDefinitions
Shorten the add_definitions command test directory and target names to avoid creating really long paths that fail with some tools on Windows. While at it, remove unnecessary project() command calls.
Diffstat (limited to 'Tests/CompileDefinitions/add_def_cmd')
-rw-r--r--Tests/CompileDefinitions/add_def_cmd/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/CompileDefinitions/add_def_cmd/CMakeLists.txt b/Tests/CompileDefinitions/add_def_cmd/CMakeLists.txt
new file mode 100644
index 0000000..2bce602
--- /dev/null
+++ b/Tests/CompileDefinitions/add_def_cmd/CMakeLists.txt
@@ -0,0 +1,12 @@
+add_definitions(-DCMAKE_IS_FUN -DCMAKE_IS=Fun -DCMAKE_IS_="Fun")
+if (NOT NO_SPACES_IN_DEFINE_VALUES)
+ add_definitions(-DCMAKE_IS_REALLY="Very Fun")
+endif()
+add_definitions(-DCMAKE_IS_="Fun")
+if (NOT NO_SPACES_IN_DEFINE_VALUES)
+ add_definitions(-DCMAKE_IS_REALLY="Very Fun")
+endif()
+add_definitions(-DCMAKE_IS_FUN -DCMAKE_IS=Fun)
+add_definitions(-DBUILD_IS_DEBUG=$<CONFIG:Debug> -DBUILD_IS_NOT_DEBUG=$<NOT:$<CONFIG:Debug>>)
+
+add_executable(add_def_cmd_exe ../compiletest.cpp)