[cmake-developers] CMake dashboard breakage [again]
Brad King
brad.king at kitware.com
Mon Jan 31 09:00:22 EST 2011
On 01/31/2011 03:07 AM, Eric Noulard wrote:
> If not what could be the cause of this problem?
CMake 2.6's foreach does not support the "IN LISTS" syntax:
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 475e0de..4d4764f 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -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
-Brad
More information about the cmake-developers
mailing list