From 77b217e0d14d33e8c05026175ebde175476cd123 Mon Sep 17 00:00:00 2001 From: isn Date: Thu, 20 Jun 2019 21:20:43 +0300 Subject: [PATCH] SALOME_INSTALL_SCRIPTS : correct of WORKING_DIRECTORY flag for py-files --- cmake/SalomeMacros.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100755 => 100644 cmake/SalomeMacros.cmake 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) -- 2.39.2