summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/XcodeProject/XcodeObjectNeedsQuote.cmake
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2015-04-04 20:13:45 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2015-04-04 20:13:45 (GMT)
commitdfd6f1f2904ca577743adb5f86f1722359723a0b (patch)
treec821c336f114ceadc09f066855a5e436222a084d /Tests/RunCMake/XcodeProject/XcodeObjectNeedsQuote.cmake
parentc6624cfdc1fe9c7c53ad9ed06da759df803aef71 (diff)
downloadCMake-dfd6f1f2904ca577743adb5f86f1722359723a0b.zip
CMake-dfd6f1f2904ca577743adb5f86f1722359723a0b.tar.gz
CMake-dfd6f1f2904ca577743adb5f86f1722359723a0b.tar.bz2
Xcode: Also quote strings containing // (#15487)
Otherwise those will be interpreted as start of a comment Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Diffstat (limited to 'Tests/RunCMake/XcodeProject/XcodeObjectNeedsQuote.cmake')
-rw-r--r--Tests/RunCMake/XcodeProject/XcodeObjectNeedsQuote.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/XcodeProject/XcodeObjectNeedsQuote.cmake b/Tests/RunCMake/XcodeProject/XcodeObjectNeedsQuote.cmake
new file mode 100644
index 0000000..ecc56ab
--- /dev/null
+++ b/Tests/RunCMake/XcodeProject/XcodeObjectNeedsQuote.cmake
@@ -0,0 +1,3 @@
+enable_language(C)
+add_library(some /${CMAKE_CURRENT_SOURCE_DIR}/someFileWithoutSpecialChars)
+set_property(SOURCE /${CMAKE_CURRENT_SOURCE_DIR}/someFileWithoutSpecialChars PROPERTY LANGUAGE C)