]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
*** empty log message ***
authoradam <adam>
Thu, 3 Mar 2011 17:56:57 +0000 (17:56 +0000)
committeradam <adam>
Thu, 3 Mar 2011 17:56:57 +0000 (17:56 +0000)
salome_adm/cmake_files/am2cmake.py

index 463147e656f9e5675d0d94fc13cf331d17e786b8..213c1eefa16ed137518618fb227b6b84b1856089 100644 (file)
@@ -1855,9 +1855,21 @@ class CMakeFile(object):
         FOREACH(f ${l})
         GET_FILENAME_COMPONENT(ext ${f} EXT)
         IF(ext STREQUAL .py)
+        SET(fff)
         ELSE(ext STREQUAL .py)
-        SET(build_srcs ${build_srcs} ${CMAKE_CURRENT_BINARY_DIR}/${f})
+        SET(fff ${CMAKE_CURRENT_BINARY_DIR}/${f})
         ENDIF(ext STREQUAL .py)
+        IF(fff)
+        IF(build_srcs)
+        LIST(FIND build_srcs ${fff} index)
+        IF(NOT index EQUAL -1)
+        SET(fff)
+        ENDIF(NOT index EQUAL -1)
+        ENDIF(build_srcs)
+        ENDIF(fff)
+        IF(fff)
+        SET(build_srcs ${build_srcs} ${fff})
+        ENDIF(fff)
         ENDFOREACH(f ${l})
         ''')
         # --