diff options
Diffstat (limited to 'fortran/test')
-rw-r--r-- | fortran/test/CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fortran/test/CMakeLists.txt b/fortran/test/CMakeLists.txt index ec75c95..7875f97 100644 --- a/fortran/test/CMakeLists.txt +++ b/fortran/test/CMakeLists.txt @@ -89,6 +89,11 @@ IF (WIN32) COMPILE_FLAGS "/dll" LINK_FLAGS "/SUBSYSTEM:CONSOLE" ) + ELSE (BUILD_SHARED_LIBS) + SET_TARGET_PROPERTIES (testhdf5_fortran + PROPERTIES + LINK_FLAGS "/NODEFAULTLIB:MSVCRT" + ) ENDIF (BUILD_SHARED_LIBS) ENDIF (MSVC) ENDIF (WIN32) @@ -119,6 +124,11 @@ IF (WIN32) COMPILE_FLAGS "/dll" LINK_FLAGS "/SUBSYSTEM:CONSOLE" ) + ELSE (BUILD_SHARED_LIBS) + SET_TARGET_PROPERTIES (testhdf5_fortran_1_8 + PROPERTIES + LINK_FLAGS "/NODEFAULTLIB:MSVCRT" + ) ENDIF (BUILD_SHARED_LIBS) ENDIF (MSVC) ENDIF (WIN32) @@ -143,6 +153,11 @@ IF (WIN32) COMPILE_FLAGS "/dll" LINK_FLAGS "/SUBSYSTEM:CONSOLE" ) + ELSE (BUILD_SHARED_LIBS) + SET_TARGET_PROPERTIES (fflush1 + PROPERTIES + LINK_FLAGS "/NODEFAULTLIB:MSVCRT" + ) ENDIF (BUILD_SHARED_LIBS) ENDIF (MSVC) ENDIF (WIN32) @@ -167,6 +182,11 @@ IF (WIN32) COMPILE_FLAGS "/dll" LINK_FLAGS "/SUBSYSTEM:CONSOLE" ) + ELSE (BUILD_SHARED_LIBS) + SET_TARGET_PROPERTIES (fflush2 + PROPERTIES + LINK_FLAGS "/NODEFAULTLIB:MSVCRT" + ) ENDIF (BUILD_SHARED_LIBS) ENDIF (MSVC) ENDIF (WIN32) |