MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0015333 | CMake | CMake | public | 2015-01-02 18:39 | 2015-11-02 09:13 | |||||
Reporter | arlbranch | |||||||||
Assigned To | Ben Boeckel | |||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | OS | OS Version | ||||||||
Product Version | CMake 3.1 | |||||||||
Target Version | CMake 3.1.1 | Fixed in Version | CMake 3.1.1 | |||||||
Summary | 0015333: Behaviour change with 3.1 - target properies set to empty string returned as -NOTFOUND | |||||||||
Description | Under the old behaviour, when a target property was set to "", get_target_property would give "". In version 3.1 it now gives prop-NOTFOUND. Needless to say, this change breaks build systems that relied on the old behaviour. | |||||||||
Steps To Reproduce | CMakeLists.txt --------------- cmake_minimum_required(VERSION 2.8.0) add_custom_target(tgt) set_target_properties(tgt PROPERTIES emptyprop "") get_target_property(val tgt emptyprop) message("val = ${val}") --------------- Old Behaviour --------------- [branch@viter on /dev/pts/9] 1044 ~/tmp/cm31bug/build $ cmake --version cmake version 2.8.12.2 [branch@viter on /dev/pts/9] 1045 ~/tmp/cm31bug/build $ cmake .. val = -- Configuring done -- Generating done -- Build files have been written to: /local/home/branch/tmp/cm31bug/build ---------------- New Behaviour ---------------- $ cmake --version cmake version 3.1.0 CMake suite maintained and supported by Kitware (kitware.com/cmake). [branch@fortuna on /dev/pts/5] 1054 ~/tmp/cm31bug/fbuild $ cmake .. val = val-NOTFOUND -- Configuring done -- Generating done -- Build files have been written to: /home/branch/tmp/cm31bug/fbuild ---------------- | |||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2015-01-02 18:39 | arlbranch | New Issue | ||||||||
2015-01-03 10:32 | Stephen Kelly | Note Added: 0037544 | ||||||||
2015-01-03 10:32 | Stephen Kelly | Assigned To | => Stephen Kelly | |||||||
2015-01-03 10:32 | Stephen Kelly | Status | new => confirmed | |||||||
2015-01-03 10:32 | Stephen Kelly | Assigned To | Stephen Kelly => | |||||||
2015-01-03 10:54 | Stephen Kelly | Note Added: 0037545 | ||||||||
2015-01-03 10:55 | Stephen Kelly | Note Added: 0037546 | ||||||||
2015-01-03 10:57 | Stephen Kelly | Note Edited: 0037546 | bug_revision_view_page.php?bugnote_id=37546#r1668 | |||||||
2015-01-08 10:47 | Brad King | Assigned To | => Ben Boeckel | |||||||
2015-01-08 10:47 | Brad King | Status | confirmed => assigned | |||||||
2015-01-08 10:47 | Brad King | Target Version | => CMake 3.1.1 | |||||||
2015-01-09 08:59 | Ben Boeckel | Note Added: 0037656 | ||||||||
2015-01-10 13:08 | Stephen Kelly | Note Added: 0037659 | ||||||||
2015-01-11 12:01 | Brad King | Note Added: 0037662 | ||||||||
2015-01-11 12:06 | Brad King | Status | assigned => resolved | |||||||
2015-01-11 12:06 | Brad King | Resolution | open => fixed | |||||||
2015-01-11 12:06 | Brad King | Fixed in Version | => CMake 3.1.1 | |||||||
2015-03-26 15:36 | Brad King | Relationship added | has duplicate 0015478 | |||||||
2015-11-02 09:13 | Robert Maynard | Note Added: 0039746 | ||||||||
2015-11-02 09:13 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|