From 2b4292d02d0b3b65f754fd1e8aa0aee51d747477 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 18 Oct 2013 14:32:33 +0000 Subject: [PATCH] Small correction. --- src/MEFISTO2/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/MEFISTO2/CMakeLists.txt b/src/MEFISTO2/CMakeLists.txt index cd8bd1f9c..00770e810 100644 --- a/src/MEFISTO2/CMakeLists.txt +++ b/src/MEFISTO2/CMakeLists.txt @@ -89,9 +89,11 @@ ADD_LIBRARY(MEFISTO2D ${MEFISTO2D_SOURCES}) TARGET_LINK_LIBRARIES(MEFISTO2D ${_link_LIBRARIES} ) #Ignore MSVCRT.lib on WIN32 in case using f2c code generator -IF(WIN32 AND ${F2C_FOUND}) - SET_TARGET_PROPERTIES(MEFISTO2D PROPERTIES LINK_FLAGS "/NODEFAULTLIB:MSVCRT") -ENDIF(WIN32 AND ${F2C_FOUND}) +IF(WIN32) + IF(${F2C_FOUND}) + SET_TARGET_PROPERTIES(MEFISTO2D PROPERTIES LINK_FLAGS "/NODEFAULTLIB:MSVCRT") + ENDIF(${F2C_FOUND}) +ENDIF(WIN32) INSTALL(TARGETS MEFISTO2D EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(FILES ${MEFISTO2D_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) -- 2.39.2