]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
SALOME_INSTALL_SCRIPTS : correct of WORKING_DIRECTORY flag for py-files isn/xdata
authorisn <isn@opencascade.com>
Thu, 20 Jun 2019 18:20:43 +0000 (21:20 +0300)
committerisn <isn@opencascade.com>
Thu, 20 Jun 2019 18:20:43 +0000 (21:20 +0300)
cmake/SalomeMacros.cmake [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index bc7baaa..6fa6fe0
@@ -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)