[Paraview] [PATCH] CMake FOREACH syntax

Jed Brown jed at 59A2.org
Sat Jan 9 13:38:52 EST 2010


Index: Utilities/IceT/src/CMakeLists.txt
===================================================================
RCS file: /cvsroot/ParaView3/ParaView3/Utilities/IceT/src/CMakeLists.txt,v
retrieving revision 1.8
diff -u -r1.8 CMakeLists.txt
--- Utilities/IceT/src/CMakeLists.txt   3 Jun 2009 15:46:18 -0000       1.8
+++ Utilities/IceT/src/CMakeLists.txt   9 Jan 2010 18:26:40 -0000
@@ -18,18 +18,18 @@
       "${CMAKE_CURRENT_SOURCE_DIR}/communication"
       "${CMAKE_CURRENT_SOURCE_DIR}/strategies")
   SET(filesToInstall)
-  FOREACH(p IN ${resPath})
+  FOREACH(p ${resPath})
       SET(tmpFilesToInstall)
       SET(exts "${p}/*.h;${p}/*.hxx;${p}/*.txx")
-      FOREACH(ext IN ${exts})
+      FOREACH(ext ${exts})
           FILE(GLOB tmpFilesToInstall
           RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
           "${ext}")
           IF(tmpFilesToInstall)
               SET(filesToInstall "${filesToInstall};${tmpFilesToInstall}")
           ENDIF(tmpFilesToInstall)
-      ENDFOREACH(ext IN ${exts})
-  ENDFOREACH(p IN ${resPath})
+      ENDFOREACH(ext ${exts})
+  ENDFOREACH(p ${resPath})
   INSTALL(
       FILES ${filesToInstall}
       DESTINATION "${ICET_INSTALL_INCLUDE_DIR}/ice-t"


More information about the ParaView mailing list