diff -Naur cmake-2.8.10-rc2-Linux-i386/share/cmake-2.8/Modules/SelectLibraryConfigurations.cmake cmake-2.8.10-rc2-Linux-i386.new/share/cmake-2.8/Modules/SelectLibraryConfigurations.cmake
--- cmake-2.8.10-rc2-Linux-i386/share/cmake-2.8/Modules/SelectLibraryConfigurations.cmake	2012-10-18 21:48:44.000000000 +0200
+++ cmake-2.8.10-rc2-Linux-i386.new/share/cmake-2.8/Modules/SelectLibraryConfigurations.cmake	2012-10-19 18:11:20.488208239 +0200
@@ -54,10 +54,10 @@
         # 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}" )
