From 5099fff8181c00e27d423661fcf4d260f6bb682c Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 2 Nov 2011 10:37:42 +0000 Subject: [PATCH] Fix logical error in generated cmake files --- salome_adm/cmake_files/am2cmake.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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} -- 2.39.2