From: adam Date: Tue, 8 Sep 2009 09:07:23 +0000 (+0000) Subject: To construct the target cmake name, only the first "lib" X-Git-Tag: V5_1_3rc1~73 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=64a1847ae34d5f1ef5fd680705c3bded086b1773;p=modules%2Fkernel.git To construct the target cmake name, only the first "lib" must be removed ... --- 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)