Salome HOME
Compile the noinst libraries as static and
authoradam <adam>
Thu, 11 Mar 2010 18:00:09 +0000 (18:00 +0000)
committeradam <adam>
Thu, 11 Mar 2010 18:00:09 +0000 (18:00 +0000)
do not install them.

salome_adm/cmake_files/am2cmake.py

index 7f8283b99a20012a22b83e5452293ef2c2b51e64..97df6132f673a0e772c7a79d9748a687f5355cba 100644 (file)
@@ -1412,6 +1412,15 @@ class CMakeFile(object):
         SET(type SHARED)
         ENDIF(ISIDL)
         ''')
+        if key == "noinst_LTLIBRARIES":
+            newlines.append(r'''
+            IF(WINDOWS)
+            SET(type STATIC)
+            ELSE(WINDOWS)
+            SET(type STATIC)
+            ENDIF(WINDOWS)
+            ''')
+            pass
         # --
         # Set sources for the library
         # --
@@ -1485,7 +1494,7 @@ class CMakeFile(object):
         # --
         self.setLibAdd(key, newlines)
         # --
-        if 1: # key != "noinst_LTLIBRARIES":
+        if key != "noinst_LTLIBRARIES":
             if self.module == "medfile":
                 newlines.append(r'''
                 SET(DEST lib)