]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
To construct the target cmake name, only the first "lib"
authoradam <adam>
Tue, 8 Sep 2009 09:07:23 +0000 (09:07 +0000)
committeradam <adam>
Tue, 8 Sep 2009 09:07:23 +0000 (09:07 +0000)
must be removed ...

salome_adm/cmake_files/am2cmake.py

index 9f7d9833222bd071628a1e3bcdd99fb530c7745e..a00043f5e5ac9153be5d743ff12007ac3a9774f7 100644 (file)
@@ -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)