SelectLibraryConfigurations: Fix foreach(x IN LISTS ...) syntax
In commit 5797512c
(SelectLibraryConfiguration: generate correct output
when input vars are lists, 2012-07-28) the "IN" keyword was left out.
This commit is contained in:
parent
5797512cec
commit
1cd2ec1072
|
@ -54,10 +54,10 @@ macro( select_library_configurations basename )
|
||||||
# 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 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()
|
||||||
foreach( _libname LISTS ${basename}_LIBRARY_DEBUG )
|
foreach( _libname IN LISTS ${basename}_LIBRARY_DEBUG )
|
||||||
list( APPEND ${basename}_LIBRARY debug "${_libname}" )
|
list( APPEND ${basename}_LIBRARY debug "${_libname}" )
|
||||||
endforeach()
|
endforeach()
|
||||||
set( ${basename}_LIBRARIES "${${basename}_LIBRARY}" )
|
set( ${basename}_LIBRARIES "${${basename}_LIBRARY}" )
|
||||||
|
|
Loading…
Reference in New Issue