MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0011660 | CMake | CMake | public | 2011-01-05 18:37 | 2011-01-31 15:58 | |||||
Reporter | sly5 | |||||||||
Assigned To | Brad King | |||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | suspended | |||||||
Platform | Windows | OS | OS Version | |||||||
Product Version | CMake 2.8.3 | |||||||||
Target Version | CMake 2.8.4 | Fixed in Version | CMake 2.8.4 | |||||||
Summary | 0011660: Semicolons escaped badly | |||||||||
Description | A macro definition that contains semicolons is escaped badly on Visual Studio. In particular, set_source_files_properties( main.cpp PROPERTIES COMPILE_DEFINITIONS "MSG=\"hello\;world\"" ) Turns into the following switch: /D "MSG=\"hello"" /D "world\\" It works fine on a Linux platform by correctly escaping as -DMSG="\"hello;world\"" | |||||||||
Steps To Reproduce | Create a CMakeLists.txt with the content: ______________________________________________ project( Hello CXX ) cmake_minimum_required(VERSION 2.8) add_executable( hello hello.cpp ) set_source_files_properties( hello.cpp PROPERTIES COMPILE_DEFINITIONS "MSG=\"hello\;world\"" ) ============================================== And a hello.cpp file ______________________________________________ #include <iostream> int main() { std::cout<< MSG <<std::endl; return 0; } ============================================== Build and compile on Windows using Visual Studio. | |||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2011-01-05 18:37 | sly5 | New Issue | ||||||||
2011-01-06 07:35 | Brad King | Note Added: 0024449 | ||||||||
2011-01-06 07:35 | Brad King | Status | new => closed | |||||||
2011-01-06 07:35 | Brad King | Assigned To | => Brad King | |||||||
2011-01-06 07:35 | Brad King | Resolution | open => not fixable | |||||||
2011-01-06 16:00 | sly5 | Note Added: 0024480 | ||||||||
2011-01-06 16:00 | sly5 | Status | closed => feedback | |||||||
2011-01-06 16:00 | sly5 | Resolution | not fixable => reopened | |||||||
2011-01-06 16:23 | Brad King | Note Added: 0024482 | ||||||||
2011-01-06 16:25 | Brad King | Note Added: 0024483 | ||||||||
2011-01-17 07:45 | Brad King | Relationship added | related to 0011712 | |||||||
2011-01-17 08:31 | Brad King | Note Added: 0024741 | ||||||||
2011-01-17 08:33 | Brad King | Note Added: 0024742 | ||||||||
2011-01-17 08:33 | Brad King | Status | feedback => closed | |||||||
2011-01-17 08:33 | Brad King | Resolution | reopened => suspended | |||||||
2011-01-31 15:58 | David Cole | Fixed in Version | => CMake 2.8.4 | |||||||
2011-01-31 15:58 | David Cole | Target Version | => CMake 2.8.4 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|