From 917da8e21c2153b1807ccda8bea80f6608a9a49d Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 3 Mar 2011 17:56:57 +0000 Subject: [PATCH] *** empty log message *** --- salome_adm/cmake_files/am2cmake.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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}) ''') # -- -- 2.39.2