From: Maintenance team (INV) Date: Thu, 18 Jun 2015 18:38:36 +0000 (+0300) Subject: Synchronize adm files X-Git-Tag: V7_7_0a1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=283d2dce54e42dfafe532e1fbbe9867747a72722;p=modules%2Fmed.git Synchronize adm files --- diff --git a/adm_local_without_kernel/cmake_files/SalomeMacros.cmake b/adm_local_without_kernel/cmake_files/SalomeMacros.cmake index 0463a8a36..898b09531 100755 --- a/adm_local_without_kernel/cmake_files/SalomeMacros.cmake +++ b/adm_local_without_kernel/cmake_files/SalomeMacros.cmake @@ -154,7 +154,11 @@ MACRO(SALOME_INSTALL_SCRIPTS file_list path) # get relativa path (from CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR) STRING(REGEX REPLACE ${CMAKE_SOURCE_DIR} "" rel_dir ${CMAKE_CURRENT_SOURCE_DIR}) # convert "/" to "_" - STRING(REGEX REPLACE "/" "_" unique_name ${rel_dir}) + IF(rel_dir) + STRING(REGEX REPLACE "/" "_" unique_name ${rel_dir}) + ELSE(rel_dir) + SET(unique_name _) + ENDIF(rel_dir) ENDFOREACH(file ${file_list}) # Generate only one target for all requested Python script compilation.