| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0005195 | CMake | CMake | public | 2007-06-14 21:24 | 2008-10-09 13:18 | ||||
| Reporter | Clark Wang | ||||||||
| Assigned To | Brad King | ||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | closed | Resolution | no change required | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0005195: GET_TARGET_PROPERTY(var lib SUFFIX) returns NOTFOUND | ||||||||
| Description | ENV ====================== Ubuntu Linux 6.06 (i386) Issue ====================== The SUFFIX/PREFIX property for a STATIC/SHARED library target returns NOTFOUND unless we explicitly set it by calling SET_TARGET_PROPERTIES. The Example CMakeLists.txt ====================== PROJECT(dummy) ADD_LIBRARY(dummy SHARED dummy.c) # This returns `NOTFOUND' GET_TARGET_PROPERTY(suffix dummy SUFFIX) MESSAGE("suffix = ${suffix}") SET_TARGET_PROPERTIES(dummy PROPERTIES SUFFIX .so) # This returns `.so' GET_TARGET_PROPERTY(suffix dummy SUFFIX) MESSAGE("suffix = ${suffix}") | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0013808) Brad King (manager) 2008-10-09 13:18 |
These properties are documented as SETTING the prefix or suffix to OVERRIDE the defaults. They are not meant for reading. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2008-10-09 13:05 | Bill Hoffman | Assigned To | Bill Hoffman => Brad King |
| 2008-10-09 13:18 | Brad King | Status | assigned => closed |
| 2008-10-09 13:18 | Brad King | Note Added: 0013808 | |
| 2008-10-09 13:18 | Brad King | Resolution | open => no change required |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |