summaryrefslogtreecommitdiffstats
path: root/Modules/SelectLibraryConfigurations.cmake
diff options
context:
space:
mode:
authorThomas Arcila <thomas.arcila@gmail.com>2012-10-19 17:44:46 (GMT)
committerBrad King <brad.king@kitware.com>2012-10-19 17:47:26 (GMT)
commit1cd2ec1072bb5508293aff602f2bc320660daf87 (patch)
tree241e4d64d2ee11ae4fa6e008cc06006d622e4880 /Modules/SelectLibraryConfigurations.cmake
parent5797512cec6ce106cf3277c59abd2ccb86ce2846 (diff)
downloadCMake-1cd2ec1072bb5508293aff602f2bc320660daf87.zip
CMake-1cd2ec1072bb5508293aff602f2bc320660daf87.tar.gz
CMake-1cd2ec1072bb5508293aff602f2bc320660daf87.tar.bz2
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.
Diffstat (limited to 'Modules/SelectLibraryConfigurations.cmake')
-rw-r--r--Modules/SelectLibraryConfigurations.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/SelectLibraryConfigurations.cmake b/Modules/SelectLibraryConfigurations.cmake
index dbff487..da927c9 100644
--- a/Modules/SelectLibraryConfigurations.cmake
+++ b/Modules/SelectLibraryConfigurations.cmake
@@ -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}" )