diff options
author | Bjoern Thiel <bthiel@gwdg.de> | 2013-05-28 09:25:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-05-28 13:26:34 (GMT) |
commit | a2099a8e8d2b97d2a2f91cbc06a4078f7c5b7139 (patch) | |
tree | 2f23bea050965778b579aeb9fba94e8ac5485e2e /Modules/SelectLibraryConfigurations.cmake | |
parent | a6c8dcee64407aa885ffdd2ad17ad294ca6aeccc (diff) | |
download | CMake-a2099a8e8d2b97d2a2f91cbc06a4078f7c5b7139.zip CMake-a2099a8e8d2b97d2a2f91cbc06a4078f7c5b7139.tar.gz CMake-a2099a8e8d2b97d2a2f91cbc06a4078f7c5b7139.tar.bz2 |
SelectLibraryConfigurations: Fix for cached <base>_LIBRARY
The line
set( ${basename}_LIBRARY )
removes the normal variable, but if the corresponding cached variable is
present then line
list( APPEND ${basename}_LIBRARY optimized "${_libname}" )
uses that and fails. Replace the original line with
set( ${basename}_LIBRARY "" )
to set the normal variable to empty instead of unsetting it.
Diffstat (limited to 'Modules/SelectLibraryConfigurations.cmake')
-rw-r--r-- | Modules/SelectLibraryConfigurations.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/SelectLibraryConfigurations.cmake b/Modules/SelectLibraryConfigurations.cmake index 62137bb..5bca064 100644 --- a/Modules/SelectLibraryConfigurations.cmake +++ b/Modules/SelectLibraryConfigurations.cmake @@ -62,7 +62,7 @@ macro( select_library_configurations basename ) # if the generator supports configuration types or CMAKE_BUILD_TYPE # is set, then set optimized and debug options. if( CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE ) - set( ${basename}_LIBRARY ) + set( ${basename}_LIBRARY "" ) foreach( _libname IN LISTS ${basename}_LIBRARY_RELEASE ) list( APPEND ${basename}_LIBRARY optimized "${_libname}" ) endforeach() |