Merge topic 'fix-SelectLibraryConfigurations-regression'

1cd2ec1 SelectLibraryConfigurations: Fix foreach(x IN LISTS ...) syntax
This commit is contained in:
David Cole 2012-10-23 16:37:28 -04:00 committed by CMake Topic Stage
commit c26373f6ca
1 changed files with 2 additions and 2 deletions

View File

@ -54,10 +54,10 @@ macro( select_library_configurations basename )
# is set, then set optimized and debug options.
if( CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE )
set( ${basename}_LIBRARY )
foreach( _libname LISTS ${basename}_LIBRARY_RELEASE )
foreach( _libname IN LISTS ${basename}_LIBRARY_RELEASE )
list( APPEND ${basename}_LIBRARY optimized "${_libname}" )
endforeach()
foreach( _libname LISTS ${basename}_LIBRARY_DEBUG )
foreach( _libname IN LISTS ${basename}_LIBRARY_DEBUG )
list( APPEND ${basename}_LIBRARY debug "${_libname}" )
endforeach()
set( ${basename}_LIBRARIES "${${basename}_LIBRARY}" )