MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0009060 | CMake | CMake | public | 2009-05-22 03:15 | 2016-06-10 14:30 |
| Reporter | cbielow | ||||
| Assigned To | Brad King | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-6 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0009060: using altered library names (CMAKE_DEBUG_POSTFIX, or OUTPUT_NAME) leads to broken link dependencies | ||||
| Description | Hi, lets start with code: [CODE] ## append "d" to debug libs (not executables!) SET(CMAKE_DEBUG_POSTFIX d); add_library(myLib ${sources}); target_link_libraries(myLib ${QT_LIBRARIES}); add_executable(myExe myExe.C); ## --> now the trouble starts: ## either: target_link_libraries(myExe optimized myLib${CMAKE_RELEASE_POSTFIX} debug myLib${CMAKE_DEBUG_POSTFIX}) ##--> will break QT dependency of myEXE ## or: target_link_libraries(myExe myLib); ##--> will generate correct QT dependencies but bad library name (missing postfix) in library list of the VS solution file. [ENDCODE] my current workaround is to "manually" add the QT dependency to myExe, but this is bad style. I tried to set the <CONFIG>_OUTPUT_NAME property, but the issue remained... greetings Chris | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2009-05-22 03:15 | cbielow | New Issue | |||
| 2009-09-14 12:44 | Bill Hoffman | Status | new => assigned | ||
| 2009-09-14 12:44 | Bill Hoffman | Assigned To | => Brad King | ||
| 2009-09-14 18:09 | Brad King | Note Added: 0017495 | |||
| 2012-08-13 10:44 | Brad King | Status | assigned => backlog | ||
| 2012-08-13 10:44 | Brad King | Note Added: 0030560 | |||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041561 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | backlog => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:30 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||