]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
SALOME_INSTALL_SCRIPTS : fix pb with compiling Python scripts if WORKING_DIRECTORY...
authorisn <isn@opencascade.com>
Thu, 20 Jun 2019 18:20:43 +0000 (21:20 +0300)
committervsr <vsr@opencascade.com>
Fri, 16 Aug 2019 13:08:31 +0000 (16:08 +0300)
cmake/SalomeMacros.cmake

index f6e9388710e42d317fb2d643594524bf49bd3b4e..0006d609d79776a5f4261a424d30f69ea35a5bc6 100644 (file)
@@ -120,10 +120,11 @@ MACRO(SALOME_INSTALL_SCRIPTS file_list path)
     SET(_source_prefix "")
     GET_FILENAME_COMPONENT(file_name ${file} NAME)
     IF(NOT IS_ABSOLUTE ${file})
+      SET(_source_prefix "${CMAKE_CURRENT_SOURCE_DIR}/")
       IF(SALOME_INSTALL_SCRIPTS_WORKING_DIRECTORY)
         SET(PREFIX "${SALOME_INSTALL_SCRIPTS_WORKING_DIRECTORY}/")
+        SET(_source_prefix "${SALOME_INSTALL_SCRIPTS_WORKING_DIRECTORY}/")
       ENDIF(SALOME_INSTALL_SCRIPTS_WORKING_DIRECTORY)
-      SET(_source_prefix "${CMAKE_CURRENT_SOURCE_DIR}/")
     ENDIF(NOT IS_ABSOLUTE ${file})
     INSTALL(FILES ${PREFIX}${file} DESTINATION ${path} PERMISSIONS ${PERMS})
     GET_FILENAME_COMPONENT(ext ${file} EXT)