]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix logical error in generated cmake files
authorvsr <vsr@opencascade.com>
Wed, 2 Nov 2011 10:37:42 +0000 (10:37 +0000)
committervsr <vsr@opencascade.com>
Wed, 2 Nov 2011 10:37:42 +0000 (10:37 +0000)
salome_adm/cmake_files/am2cmake.py

index 7a7087aa6736d7c1efee71a0d18d37c317376e39..64e31578507be92478926c798aaf505d2b2ef158 100644 (file)
@@ -1536,7 +1536,7 @@ class CMakeFile(object):
             SET(input_path ${CMAKE_CURRENT_SOURCE_DIR}/${input})
             IF (NOT EXISTS ${input_path})
               SET(input_path ${CMAKE_CURRENT_BINARY_DIR}/${input})
-            ENDIF (NOT EXISTS input_path)
+            ENDIF (NOT EXISTS ${input_path})
             ADD_CUSTOM_COMMAND(
             OUTPUT ${output}
             COMMAND ${QT_UIC_EXECUTABLE} -o ${output} ${input_path}
@@ -1549,7 +1549,7 @@ class CMakeFile(object):
             SET(input_path ${CMAKE_CURRENT_SOURCE_DIR}/${input})
             IF (NOT EXISTS ${input_path})
               SET(input_path ${CMAKE_CURRENT_BINARY_DIR}/${input})
-            ENDIF (NOT EXISTS input_path)
+            ENDIF (NOT EXISTS ${input_path})
             ADD_CUSTOM_COMMAND(
             OUTPUT ${output}
             COMMAND ${QT_MOC_EXECUTABLE} ${MOC_FLAGS} ${input_path} -o ${output}