summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorIsuru Fernando <isuruf@gmail.com>2017-10-31 00:51:45 (GMT)
committerBrad King <brad.king@kitware.com>2017-10-31 12:48:15 (GMT)
commit3c3682289dfe62fa2448e1be7ab714e674b475d8 (patch)
treed35ac7131695155a5be6b2ee08bd944e4a69aef1 /Modules/Platform
parent72d27964b92ddb4d8ee85e32a27d0e56d642ec1c (diff)
downloadCMake-3c3682289dfe62fa2448e1be7ab714e674b475d8.zip
CMake-3c3682289dfe62fa2448e1be7ab714e674b475d8.tar.gz
CMake-3c3682289dfe62fa2448e1be7ab714e674b475d8.tar.bz2
Flang: Add support for compiling sources on Windows
Define `CMAKE_Fortran_COMPILE_OBJECT` for Flang on Windows.
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Windows-Flang-Fortran.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-Flang-Fortran.cmake b/Modules/Platform/Windows-Flang-Fortran.cmake
index 9f20e73..a4b1cf1 100644
--- a/Modules/Platform/Windows-Flang-Fortran.cmake
+++ b/Modules/Platform/Windows-Flang-Fortran.cmake
@@ -1,2 +1,3 @@
include(Platform/Windows-MSVC)
__windows_compiler_msvc(Fortran)
+set(CMAKE_Fortran_COMPILE_OBJECT "<CMAKE_Fortran_COMPILER> ${_COMPILE_Fortran} <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -c <SOURCE>")