]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Synchronize adm files
authorMaintenance team (INV) <mnt@opencascade.com>
Thu, 18 Jun 2015 18:38:36 +0000 (21:38 +0300)
committerMaintenance team (INV) <mnt@opencascade.com>
Thu, 18 Jun 2015 18:38:36 +0000 (21:38 +0300)
adm_local_without_kernel/cmake_files/SalomeMacros.cmake

index 0463a8a3645e3022a65bfb1325311a9ceb803f91..898b09531611d36ce1979dab6296abd9aedc61c0 100755 (executable)
@@ -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.