]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix Python UI generation when building with CMake
authorbarate <barate>
Wed, 26 Oct 2011 15:25:22 +0000 (15:25 +0000)
committerbarate <barate>
Wed, 26 Oct 2011 15:25:22 +0000 (15:25 +0000)
salome_adm/cmake_files/am2cmake.py

index 2a10d1a26a92f90be4841cfbb98ad44c4e741d94..9bfddcc5d5926d94a67c9f8286c6ed3becd1f87a 100644 (file)
@@ -1457,7 +1457,7 @@ class CMakeFile(object):
         if self.__thedict__.has_key(key):
             newlines.append('''
             FOREACH(output ${PYUIC_FILES})
-            STRING(REPLACE ".py" ".ui" input ${output})
+            STRING(REPLACE "_ui.py" ".ui" input ${output})
             SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${input})
             SET(output ${CMAKE_CURRENT_BINARY_DIR}/${output})
             ADD_CUSTOM_COMMAND(