]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
*** empty log message ***
authoradam <adam>
Mon, 9 Mar 2009 09:05:56 +0000 (09:05 +0000)
committeradam <adam>
Mon, 9 Mar 2009 09:05:56 +0000 (09:05 +0000)
salome_adm/cmake_files/FindPLATFORM.cmake
salome_adm/cmake_files/am2cmake.py

index 7002c2a1ea0da581f7d8d9db95f9629bb5b9457a..a753fb63ad0c21d30811171e21cc9e9812cda730 100644 (file)
@@ -63,10 +63,10 @@ IF(WINDOWS)
   SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -DWNT)
   SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -DPPRO_NT) # For medfile
   SET(PLATFORM_CPPFLAGS ${PLATFORM_CPPFLAGS} -D_USE_MATH_DEFINES) # At least for MEDMEM
-  SET(PLATFORM_LIBADD Ws2_32.lib)
-  SET(PLATFORM_LIBADD Userenv.lib) # At least for GEOM suit
+  SET(PLATFORM_LIBADD ${PLATFORM_LIBADD} Ws2_32.lib)
+  SET(PLATFORM_LIBADD ${PLATFORM_LIBADD} Userenv.lib) # At least for GEOM suit
 ELSE(WINDOWS)
-  SET(PLATFORM_LIBADD -ldl)
+  SET(PLATFORM_LIBADD ${PLATFORM_LIBADD} -ldl)
 ENDIF(WINDOWS)
 
 #  SET(PLATFORM_CPPFLAGS)
index 8f6ef65a0c72ebdf0f7b6b900f19844e91fd4532..01748db72bc89e2a9e88a429413182fc0780470f 100644 (file)
@@ -1057,6 +1057,9 @@ class CMakeFile(object):
         # --
         newlines.append(r'''
         SET(libs ${PLATFORM_LIBADD} ${PLATFORM_LDFLAGS} ${${amname}_LIBADD} ${${amname}_LDADD} ${${amname}_LDFLAGS})
+        IF(name STREQUAL SALOMEBasics)
+        SET(libs ${libs} ${PTHREAD_LIBS})
+        ENDIF(name STREQUAL SALOMEBasics)
         ''')
         if key == "bin_PROGRAMS":
             newlines.append(r'''
@@ -1088,11 +1091,7 @@ class CMakeFile(object):
         ENDFOREACH(v ${vars})
         SET(libadd ${libadd} ${lib})
         ENDFOREACH(lib ${libs})
-        IF(name STREQUAL SALOMEBasics)
-        TARGET_LINK_LIBRARIES(${name} ${PTHREAD_LIBS} ${libadd})
-        ELSE(name STREQUAL SALOMEBasics)
         TARGET_LINK_LIBRARIES(${name} ${libadd})
-        ENDIF(name STREQUAL SALOMEBasics)
         ''')
         # --
         return
@@ -1154,6 +1153,7 @@ class CMakeFile(object):
         SET(vars)
         IF(WINDOWS)
         SET(vars ${vars} -include SALOMEconfig.h)
+        SET(vars ${vars} -ftemplate-depth-32)
         ENDIF(WINDOWS)
         SET(flags)
         FOREACH(f ${var})