diff options
author | Brad King <brad.king@kitware.com> | 2013-10-11 17:40:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-18 13:55:59 (GMT) |
commit | af40e8c31256095eb8436b798fa1fbc0c71b0319 (patch) | |
tree | b3f8ca7e9003a4c6cd731ab26444d97d86f4111e /Modules/CMakeDetermineCompilerId.cmake | |
parent | b8522a8c8a64d6f86dc3618f658b07f7ba1d8fcd (diff) | |
download | CMake-af40e8c31256095eb8436b798fa1fbc0c71b0319.zip CMake-af40e8c31256095eb8436b798fa1fbc0c71b0319.tar.gz CMake-af40e8c31256095eb8436b798fa1fbc0c71b0319.tar.bz2 |
VS: Detect Intel Fortran compiler id and version
Teach CMakeDetermineCompilerId to use a .vfproj project file to
build the Fortran compiler id source file under the Visual Studio
generators.
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r-- | Modules/CMakeDetermineCompilerId.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index 4c2b506..e591f2c 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -114,7 +114,11 @@ Id flags: ${testflags} set(id_platform ${CMAKE_VS_PLATFORM_NAME}) set(id_lang "${lang}") set(id_cl cl.exe) - if(NOT "${vs_version}" VERSION_LESS 10) + if(lang STREQUAL Fortran) + set(v Intel) + set(ext vfproj) + set(id_cl ifort.exe) + elseif(NOT "${vs_version}" VERSION_LESS 10) set(v 10) set(ext vcxproj) elseif(NOT "${vs_version}" VERSION_LESS 7) |