summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows-ifort.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-09-01 20:33:51 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-09-01 20:33:51 (GMT)
commit8710cc6422fcb8887bf3b5642ab4c4934c570740 (patch)
treebe3a1efdb9153719b864d69b653f21b4d55956f0 /Modules/Platform/Windows-ifort.cmake
parent76d059e3fb77b2e79904435c2d574873c0b426ef (diff)
downloadCMake-8710cc6422fcb8887bf3b5642ab4c4934c570740.zip
CMake-8710cc6422fcb8887bf3b5642ab4c4934c570740.tar.gz
CMake-8710cc6422fcb8887bf3b5642ab4c4934c570740.tar.bz2
Add support for embeded manifests for Intel C/C++/Fortran compilers
Diffstat (limited to 'Modules/Platform/Windows-ifort.cmake')
-rw-r--r--Modules/Platform/Windows-ifort.cmake13
1 files changed, 12 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-ifort.cmake b/Modules/Platform/Windows-ifort.cmake
index 2bf4753..01848a6 100644
--- a/Modules/Platform/Windows-ifort.cmake
+++ b/Modules/Platform/Windows-ifort.cmake
@@ -26,7 +26,18 @@ SET(CMAKE_Fortran_COMPILE_OBJECT
SET(CMAKE_COMPILE_RESOURCE "rc <FLAGS> /fo<OBJECT> <SOURCE>")
SET(CMAKE_Fortran_LINK_EXECUTABLE
- "<CMAKE_Fortran_COMPILER> ${CMAKE_CL_NOLOGO} <OBJECTS> ${CMAKE_START_TEMP_FILE} <FLAGS> /Fe<TARGET> -link <CMAKE_Fortran_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>${CMAKE_END_TEMP_FILE}")
+ "<CMAKE_Fortran_COMPILER> ${CMAKE_CL_NOLOGO} <OBJECTS> ${CMAKE_START_TEMP_FILE} <FLAGS> /Fe<TARGET> -link <CMAKE_Fortran_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>${CMAKE_END_TEMP_FILE}")
+
+INCLUDE(Platform/Windows-Intel)
+
+IF(_INTEL_COMPILER_SUPPORTS_MANIFEST)
+ SET(CMAKE_Fortran_LINK_EXECUTABLE
+ "<CMAKE_COMMAND> -E vs_link_exe ${CMAKE_Fortran_LINK_EXECUTABLE}")
+ SET(CMAKE_Fortran_CREATE_SHARED_LIBRARY
+ "<CMAKE_COMMAND> -E vs_link_dll ${CMAKE_Fortran_CREATE_SHARED_LIBRARY}")
+ SET(CMAKE_Fortran_CREATE_SHARED_MODULE
+ "<CMAKE_COMMAND> -E vs_link_dll ${CMAKE_Fortran_CREATE_SHARED_MODULE}")
+ENDIF(_INTEL_COMPILER_SUPPORTS_MANIFEST)
SET(CMAKE_CREATE_WIN32_EXE /subsystem:windows)
SET(CMAKE_CREATE_CONSOLE_EXE /subsystem:console)