summaryrefslogtreecommitdiffstats
path: root/Tests/VSResource/test.rc
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-01-27 20:45:25 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-01-27 23:28:36 (GMT)
commit008d116b1767cb93c043e399ab607bcc8db5c175 (patch)
treebdce62f475073f365cfdc5fe291dcd2c2fc9c9de /Tests/VSResource/test.rc
parent8f9919d93cad64de58775e4a7609b0ffb37d061e (diff)
downloadCMake-008d116b1767cb93c043e399ab607bcc8db5c175.zip
CMake-008d116b1767cb93c043e399ab607bcc8db5c175.tar.gz
CMake-008d116b1767cb93c043e399ab607bcc8db5c175.tar.bz2
VSResource: Avoid windres /D with quoted spaces (#11695)
Improve test: print out what's happening along the way.
Diffstat (limited to 'Tests/VSResource/test.rc')
-rw-r--r--Tests/VSResource/test.rc11
1 files changed, 9 insertions, 2 deletions
diff --git a/Tests/VSResource/test.rc b/Tests/VSResource/test.rc
index 2e87a68..4ce4b53 100644
--- a/Tests/VSResource/test.rc
+++ b/Tests/VSResource/test.rc
@@ -1,10 +1,17 @@
#ifdef CMAKE_RCDEFINE
-hello TEXT DISCARDABLE CMAKE_RCDEFINE
+// This line can compile with either an unquoted or a quoted string
+1025 TEXTFILE CMAKE_RCDEFINE
+
+#ifndef CMAKE_RCDEFINE_NO_QUOTED_STRINGS
+// This block can only be compiled if CMAKE_RCDEFINE preprocesses
+// to a double quoted string
STRINGTABLE
BEGIN
- 1 CMAKE_RCDEFINE
+ 1026 CMAKE_RCDEFINE
END
+#endif
+
#else
#error "resource compiler did not get defines from command line!"
#endif