| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0014018 | CMake | Modules | public | 2013-03-15 09:49 | 2016-06-10 14:31 | ||||
| Reporter | luc.touraille | ||||||||
| Assigned To | Kitware Robot | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | moved | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | CMake-2-8 | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0014018: SelectLibraryConfigurations wrongly set basename_LIBRARY | ||||||||
| Description | When calling select_library_configurations( basename ) when basename_LIBRARY is already in cache, the macro appends basename_LIBRARY to itself. The cache variable is not modified, but subsequent uses of basename_LIBRARY can be problematic. | ||||||||
| Steps To Reproduce | 1. Create a CMakeLists.txt that uses select_library_configurations and uses the lib_LIBRARY variable afterwards, like this one (also attached): [code]cmake_minimum_required(VERSION 2.8) include( SelectLibraryConfigurations ) set( FOO_LIBRARY_RELEASE foo ) set( FOO_LIBRARY_DEBUG foo_d ) set( CMAKE_BUILD_TYPE Release ) select_library_configurations( FOO ) message( STATUS "FOO_LIBRARY = ${FOO_LIBRARY}" )[/code] 2. Run cmake twice. [code]> cmake . [...] -- FOO_LIBRARY = optimized;foo;debug;foo_d [...] > cmake . [...] -- FOO_LIBRARY = optimized;foo;debug;foo_d;optimized;foo;debug;foo_d [...][/code] | ||||||||
| Additional Information | The issue can be resolved by using a temporary variable for building the list instead of manipulating basename_LIBRARY directly. | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0042250) Kitware Robot (administrator) 2016-06-10 14:28 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2013-03-15 09:49 | luc.touraille | New Issue | |
| 2013-03-15 09:49 | luc.touraille | File Added: CMakeLists.txt | |
| 2016-06-10 14:28 | Kitware Robot | Note Added: 0042250 | |
| 2016-06-10 14:28 | Kitware Robot | Status | new => resolved |
| 2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
| 2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot |
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |