Avoid foreach IN LISTS syntax which is not supported by CMake 2.6

This commit is contained in:
Eric NOULARD 2011-01-31 17:25:29 +01:00
parent 92ced20fa1
commit b8da1a1378
1 changed files with 2 additions and 2 deletions

View File

@ -572,9 +572,9 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
list(APPEND CWAYLST "IgnoreGroup")
list(APPEND CWAYLST "AllInOne")
list(APPEND CWAYLST "AllGroupsInOne")
foreach(CPackGen IN LISTS GENLST)
foreach(CPackGen ${GENLST})
set(CPackRun_CPackGen "-DCPackGen=${CPackGen}")
foreach(CPackComponentWay IN LISTS CWAYLST)
foreach(CPackComponentWay ${CWAYLST})
set(CPackRun_CPackComponentWay "-DCPackComponentWay=${CPackComponentWay}")
ADD_TEST(CPackComponentsForAll-${CPackGen}-${CPackComponentWay} ${CMAKE_CTEST_COMMAND}
--build-and-test