The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=12427 ====================================================================== Reported By: Mathnerd314 Assigned To: ====================================================================== Project: CMake Issue ID: 12427 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2011-08-28 10:41 EDT Last Modified: 2011-08-28 10:41 EDT ====================================================================== Summary: ADD_CUSTOM_COMMAND escapes quotes incorrectly under MSVC Description: ADD_CUSTOM_COMMAND maps to a batch file, and in batch files the proper way to escape quotes is by doubling them. (i.e., "") However, the generated file doesn't do this, instead escaping them using a backslash (i.e., \"), which cmd.exe does not support.
Steps to Reproduce: 1. Generate project files for attached CMakeLists.txt 2. Examine test.vcproj, and note that the applicable rule has a CommandLine containing "\"" 3. Build the project in Visual Studio, and note how a #define statement is output 4. Examine version.h, and note how the contents is not a valid header file Additional Information: There appear to be no workarounds, so a speedy fix would be helpful. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-08-28 10:41 Mathnerd314 New Issue 2011-08-28 10:41 Mathnerd314 File Added: CMakeLists.txt ====================================================================== _______________________________________________ cmake-developers mailing list [email protected] http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
