summaryrefslogtreecommitdiff
path: root/Modules/SelectLibraryConfigurations.cmake
diff options
context:
space:
mode:
authorBjoern Thiel <bthiel@gwdg.de>2013-05-28 05:25:00 -0400
committerBrad King <brad.king@kitware.com>2013-05-28 09:26:34 -0400
commita2099a8e8d2b97d2a2f91cbc06a4078f7c5b7139 (patch)
tree2f23bea050965778b579aeb9fba94e8ac5485e2e /Modules/SelectLibraryConfigurations.cmake
parenta6c8dcee64407aa885ffdd2ad17ad294ca6aeccc (diff)
downloadcmake-a2099a8e8d2b97d2a2f91cbc06a4078f7c5b7139.tar.gz
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.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/SelectLibraryConfigurations.cmake b/Modules/SelectLibraryConfigurations.cmake
index 62137bb288..5bca064f5a 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()