]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix compilation for JOBMANAGER
authoradam <adam>
Tue, 15 Feb 2011 11:52:55 +0000 (11:52 +0000)
committeradam <adam>
Tue, 15 Feb 2011 11:52:55 +0000 (11:52 +0000)
salome_adm/cmake_files/am2cmake.py

index 9d991e3ee296b6788d4725fa9e1f1786114a4692..bd89fb9d0d022e6c3bf66c0a6a7c718f088b5dab 100644 (file)
@@ -1598,7 +1598,13 @@ class CMakeFile(object):
         SET(lib)
         ENDIF(lib STREQUAL v)
         ENDFOREACH(v ${vars})
+        SET(test OFF)
+        IF(lib)
+        STRING(REGEX MATCH "^-lQt" test ${lib})
+        ENDIF(lib)
+        IF(NOT test)
         SET(libadd ${libadd} ${lib})
+        ENDIF(NOT test)
         ENDFOREACH(lib ${libs})
         TARGET_LINK_LIBRARIES(${name} ${libadd})
         ''')