summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/Clang.cmake
diff options
context:
space:
mode:
authorIsuru Fernando <isuruf@gmail.com>2017-10-31 00:51:23 (GMT)
committerBrad King <brad.king@kitware.com>2017-10-31 12:47:06 (GMT)
commit72d27964b92ddb4d8ee85e32a27d0e56d642ec1c (patch)
tree135c28e5803ad84dda1b343c49c0255c4b4c4aab /Modules/Compiler/Clang.cmake
parent41d796be155e0da8fec66cb281429ed0eb91650d (diff)
downloadCMake-72d27964b92ddb4d8ee85e32a27d0e56d642ec1c.zip
CMake-72d27964b92ddb4d8ee85e32a27d0e56d642ec1c.tar.gz
CMake-72d27964b92ddb4d8ee85e32a27d0e56d642ec1c.tar.bz2
Flang: Identify as simulating MSVC on Windows
In `CMakeFortranCompilerId.F.in`, take the `_MSC_VER` out of the Intel-specific block so it will trigger for other compilers like Flang. In `Compiler/Clang.cmake`, switch off Fortran too.
Diffstat (limited to 'Modules/Compiler/Clang.cmake')
-rw-r--r--Modules/Compiler/Clang.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/Compiler/Clang.cmake b/Modules/Compiler/Clang.cmake
index 9f5e921..7ce1adb 100644
--- a/Modules/Compiler/Clang.cmake
+++ b/Modules/Compiler/Clang.cmake
@@ -11,7 +11,8 @@ set(__COMPILER_CLANG 1)
include(Compiler/CMakeCommonCompilerMacros)
if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC"
- OR "x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC")
+ OR "x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC"
+ OR "x${CMAKE_Fortran_SIMULATE_ID}" STREQUAL "xMSVC")
macro(__compiler_clang lang)
endmacro()
else()