summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-09-20 13:53:45 (GMT)
committerBrad King <brad.king@kitware.com>2010-09-20 13:53:45 (GMT)
commitc04af060093565d0bdb3703ca89176aff4732abf (patch)
tree25a6dc0d7d8f2afa7c6ca5d7f5f473ece5e09670 /Modules/Platform
parent11756b9608c7cf59a832296790b6938614cd6597 (diff)
downloadCMake-c04af060093565d0bdb3703ca89176aff4732abf.zip
CMake-c04af060093565d0bdb3703ca89176aff4732abf.tar.gz
CMake-c04af060093565d0bdb3703ca89176aff4732abf.tar.bz2
Add module-dir flag for Compaq Visual Fortran (#11248)
This compiler uses "-module:" to specify where modules should be placed.
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Windows-df.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-df.cmake b/Modules/Platform/Windows-df.cmake
index 753b198..f5046bf 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:<TARGET> /dll <LINK_FLAGS> <OBJECTS> <LINK_LIBRARIES> ${CMAKE_END_TEMP_FILE}")