From: ana Date: Fri, 25 Oct 2013 13:31:17 +0000 (+0000) Subject: Fix compilation on WIN64 in Release mode X-Git-Tag: V7_3_0a1~101 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=74493f3fdb7fc983e36ee0e6c4e1c1fdbc0851d2;p=modules%2Fsmesh.git Fix compilation on WIN64 in Release mode --- diff --git a/src/MEFISTO2/CMakeLists.txt b/src/MEFISTO2/CMakeLists.txt index 00770e810..459bf2502 100644 --- a/src/MEFISTO2/CMakeLists.txt +++ b/src/MEFISTO2/CMakeLists.txt @@ -88,11 +88,13 @@ ENDIF(${F2C_FOUND}) ADD_LIBRARY(MEFISTO2D ${MEFISTO2D_SOURCES}) TARGET_LINK_LIBRARIES(MEFISTO2D ${_link_LIBRARIES} ) -#Ignore MSVCRT.lib on WIN32 in case using f2c code generator +#Ignore MSVCRT.lib on WINDOWS in case using f2c code generator IF(WIN32) - IF(${F2C_FOUND}) - SET_TARGET_PROPERTIES(MEFISTO2D PROPERTIES LINK_FLAGS "/NODEFAULTLIB:MSVCRT") - ENDIF(${F2C_FOUND}) + IF(CMAKE_BUILD_TYPE STREQUAL Debug) + IF(${F2C_FOUND}) + SET_TARGET_PROPERTIES(MEFISTO2D PROPERTIES LINK_FLAGS "/NODEFAULTLIB:MSVCRT") + ENDIF(${F2C_FOUND}) + ENDIF() ENDIF(WIN32) INSTALL(TARGETS MEFISTO2D EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})