From: vsr Date: Wed, 2 Nov 2011 10:37:42 +0000 (+0000) Subject: Fix logical error in generated cmake files X-Git-Tag: V6_4_0b1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5099fff8181c00e27d423661fcf4d260f6bb682c;p=modules%2Fkernel.git Fix logical error in generated cmake files --- diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index 7a7087aa6..64e315785 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -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}