Merge topic 'SelectLibraryConfigurations-cached-library'

a2099a8 SelectLibraryConfigurations: Fix for cached <base>_LIBRARY
This commit is contained in:
Brad King 2013-06-03 09:57:08 -04:00 committed by CMake Topic Stage
commit 406d270c7b
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ macro( select_library_configurations basename )
# if the generator supports configuration types or CMAKE_BUILD_TYPE # if the generator supports configuration types or CMAKE_BUILD_TYPE
# is set, then set optimized and debug options. # is set, then set optimized and debug options.
if( CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE ) if( CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE )
set( ${basename}_LIBRARY ) set( ${basename}_LIBRARY "" )
foreach( _libname IN LISTS ${basename}_LIBRARY_RELEASE ) foreach( _libname IN LISTS ${basename}_LIBRARY_RELEASE )
list( APPEND ${basename}_LIBRARY optimized "${_libname}" ) list( APPEND ${basename}_LIBRARY optimized "${_libname}" )
endforeach() endforeach()