From: adam Date: Thu, 3 Mar 2011 17:56:57 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: Start_BR_19998_21191~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=917da8e21c2153b1807ccda8bea80f6608a9a49d;p=modules%2Fkernel.git *** empty log message *** --- diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index 463147e65..213c1eefa 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -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}) ''') # --