From 64a1847ae34d5f1ef5fd680705c3bded086b1773 Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 8 Sep 2009 09:07:23 +0000 Subject: [PATCH] To construct the target cmake name, only the first "lib" must be removed ... --- salome_adm/cmake_files/am2cmake.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index 9f7d98332..a00043f5e 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -1119,7 +1119,7 @@ class CMakeFile(object): GET_FILENAME_COMPONENT(ext ${lib} EXT) IF(ext STREQUAL .la) GET_FILENAME_COMPONENT(lib ${lib} NAME_WE) - STRING(REPLACE "lib" "" lib ${lib}) + STRING(REGEX REPLACE "^lib" "" lib ${lib}) ENDIF(ext STREQUAL .la) SET(vars) SET(vars ${vars} -no-undefined) -- 2.39.2