]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
*** empty log message ***
authoradam <adam>
Tue, 10 Mar 2009 15:36:37 +0000 (15:36 +0000)
committeradam <adam>
Tue, 10 Mar 2009 15:36:37 +0000 (15:36 +0000)
salome_adm/cmake_files/am2cmake.py

index 01748db72bc89e2a9e88a429413182fc0780470f..7eb735a167a77a7b3f3147a448132ce5ea35f2f4 100644 (file)
@@ -1094,6 +1094,20 @@ class CMakeFile(object):
         TARGET_LINK_LIBRARIES(${name} ${libadd})
         ''')
         # --
+        newlines.append(r'''
+        IF(WINDOWS)
+        SET(targets)
+        SET(targets ${targets} MEFISTO2D)
+        FOREACH(target ${targets})
+        IF(name STREQUAL ${target})
+        IF(CMAKE_BUILD_TYPE STREQUAL Debug)
+        SET_TARGET_PROPERTIES(${name} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:MSVCRT")
+        ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
+        ENDIF(name STREQUAL ${target})
+        ENDFOREACH(target ${targets})
+        ENDIF(WINDOWS)
+        ''')
+        # --
         return
     
     def setCompilationFlags(self, key, newlines):