From: Maintenance team (INV) Date: Thu, 18 Jun 2015 18:38:50 +0000 (+0300) Subject: Synchronize adm files X-Git-Tag: V7_7_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=402b95ff35aa1aa481af8940798d51a82b5b2494;p=tools%2Fdocumentation.git Synchronize adm files --- diff --git a/CMakeModules/SalomeMacros.cmake b/CMakeModules/SalomeMacros.cmake index 0463a8a..898b095 100644 --- a/CMakeModules/SalomeMacros.cmake +++ b/CMakeModules/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.