diff options
author | David Cole <david.cole@kitware.com> | 2012-10-23 20:37:28 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-10-23 20:37:28 (GMT) |
commit | c26373f6ca9762c0bd9950eb3aa5f1183f370842 (patch) | |
tree | 64a1eb6254672c30f30823dbd511bbb3d6603fc3 /Modules/SelectLibraryConfigurations.cmake | |
parent | 0276f4e9f42e4ac07c2f9dc48f7576f863e9326f (diff) | |
parent | 1cd2ec1072bb5508293aff602f2bc320660daf87 (diff) | |
download | CMake-c26373f6ca9762c0bd9950eb3aa5f1183f370842.zip CMake-c26373f6ca9762c0bd9950eb3aa5f1183f370842.tar.gz CMake-c26373f6ca9762c0bd9950eb3aa5f1183f370842.tar.bz2 |
Merge topic 'fix-SelectLibraryConfigurations-regression'
1cd2ec1 SelectLibraryConfigurations: Fix foreach(x IN LISTS ...) syntax
Diffstat (limited to 'Modules/SelectLibraryConfigurations.cmake')
-rw-r--r-- | Modules/SelectLibraryConfigurations.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/SelectLibraryConfigurations.cmake b/Modules/SelectLibraryConfigurations.cmake index 82bb173..eb4d885 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}" ) |