MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0006813 | CMake | CMake | public | 2008-04-15 22:29 | 2008-04-21 19:28 |
| Reporter | Surya Kiran | ||||
| Assigned To | Brad King | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-6 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0006813: Install command not honoring Configurations option. | ||||
| Description | Hello all, I'm building a library in debug and in release modes. I want the built library to go at different locations for each configuration. So I've done something like this. =============================== set (mytarget "mylib") Add_Library (${mytarget} ${mysrcs}) Set_Target_Properties (${mytarget} PROPERTIES DEBUG_POSTFIX d) INSTALL ( TARGETS ${mytarget} RUNTIME DESTINATION bin_debug LIBRARY DESTINATION lib_debug CONFIGURATIONS Debug ) INSTALL ( TARGETS ${mytarget} RUNTIME DESTINATION bin LIBRARY DESTINATION lib CONFIGURATIONS Release ) ================================== Both the debug and release libraries are built properly. But the problem is the library is getting installed to both the directories for both the configurations. That means the ${CMAKE_INSTALL_DIR}/bin contains mylibd.dll and mylib.dll and same is the case for ${CMAKE_INSTALL_DIR}/bin_debug. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-04-15 22:29 | Surya Kiran | New Issue | |||
| 2008-04-15 22:35 | Surya Kiran | Note Added: 0011381 | |||
| 2008-04-21 18:16 | Bill Hoffman | Status | new => assigned | ||
| 2008-04-21 18:16 | Bill Hoffman | Assigned To | => Brad King | ||
| 2008-04-21 19:28 | Brad King | Status | assigned => closed | ||
| 2008-04-21 19:28 | Brad King | Note Added: 0011470 | |||
| 2008-04-21 19:28 | Brad King | Resolution | open => no change required | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||