From 402b95ff35aa1aa481af8940798d51a82b5b2494 Mon Sep 17 00:00:00 2001 From: "Maintenance team (INV)" Date: Thu, 18 Jun 2015 21:38:50 +0300 Subject: [PATCH] Synchronize adm files --- CMakeModules/SalomeMacros.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. -- 2.39.2