From: isn Date: Thu, 20 Jun 2019 18:20:43 +0000 (+0300) Subject: SALOME_INSTALL_SCRIPTS : correct of WORKING_DIRECTORY flag for py-files X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fisn%2Fxdata;p=tools%2Fconfiguration.git SALOME_INSTALL_SCRIPTS : correct of WORKING_DIRECTORY flag for py-files --- diff --git a/cmake/SalomeMacros.cmake b/cmake/SalomeMacros.cmake old mode 100755 new mode 100644 index bc7baaa..6fa6fe0 --- a/cmake/SalomeMacros.cmake +++ b/cmake/SalomeMacros.cmake @@ -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)