From c04af060093565d0bdb3703ca89176aff4732abf Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 20 Sep 2010 09:53:45 -0400 Subject: [PATCH] Add module-dir flag for Compaq Visual Fortran (#11248) This compiler uses "-module:" to specify where modules should be placed. --- Modules/Platform/Windows-df.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/Platform/Windows-df.cmake b/Modules/Platform/Windows-df.cmake index 753b198739..f5046bf357 100644 --- a/Modules/Platform/Windows-df.cmake +++ b/Modules/Platform/Windows-df.cmake @@ -10,6 +10,8 @@ ELSE(CMAKE_VERBOSE_MAKEFILE) SET(CMAKE_CL_NOLOGO "/nologo") ENDIF(CMAKE_VERBOSE_MAKEFILE) +SET(CMAKE_Fortran_MODDIR_FLAG "-module:") + SET(CMAKE_Fortran_CREATE_SHARED_LIBRARY "link ${CMAKE_CL_NOLOGO} ${CMAKE_START_TEMP_FILE} /out: /dll ${CMAKE_END_TEMP_FILE}")