MantisBT - CMake |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0015750 | CMake | CMake | public | 2015-09-17 10:13 | 2016-02-01 09:10 |
|
| Reporter | CarlPoirier | |
| Assigned To | | |
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | |
| Platform | Visual Studio 2008 | OS | Windows 7 | OS Version | x64 |
| Product Version | CMake 3.3.1 | |
| Target Version | | Fixed in Version | | |
|
| Summary | 0015750: setting COMPILE_DEFINITIONS_<CONFIG> is broken |
| Description | Setting the compile definitions for a particular configuration does not work using the following command, which should according to http://www.cmake.org/Wiki/CMake_2.6_Notes: [^]
set_property(TARGET ${PrjName0} PROPERTY COMPILE_DEFINITIONS_DEBUG SOMEDEFINE) |
| Steps To Reproduce | 1. Unzip the included hello world project.
2. Run "cmake -G "Visual Studio 9 2008" .
3. Open the project in Visual Studio 2008.
4. Go to project properties -> C/C++ -> Preprocessor and see that the definition did not apply. |
| Additional Information | Setting the compile definitions for all configurations does work, though:
set_property(TARGET ${PrjName0} PROPERTY COMPILE_DEFINITIONS SOMEDEFINE) |
| Tags | No tags attached. |
| Relationships | |
| Attached Files | CMakeTest.zip (830) 2015-09-17 10:13 https://public.kitware.com/Bug/file/5530/CMakeTest.zip |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2015-09-17 10:13 | CarlPoirier | New Issue | |
| 2015-09-17 10:13 | CarlPoirier | File Added: CMakeTest.zip | |
| 2015-09-17 10:17 | Brad King | Note Added: 0039437 | |
| 2015-09-17 10:17 | Brad King | Status | new => resolved |
| 2015-09-17 10:17 | Brad King | Resolution | open => no change required |
| 2015-09-17 10:23 | CarlPoirier | Note Added: 0039438 | |
| 2016-02-01 09:10 | Robert Maynard | Note Added: 0040409 | |
| 2016-02-01 09:10 | Robert Maynard | Status | resolved => closed |