summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorIsuru Fernando <isuruf@gmail.com>2020-11-19 17:33:23 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-24 12:39:47 (GMT)
commitfe3f846e1b88341529686ee7dd334b01fe9e705e (patch)
tree95a4facd2432b9eb74d4039cd467d364d3a0ab2e /Source/cmMakefileTargetGenerator.cxx
parent66488d4eb31d372d8e06ce78e5f49a7cc43974ee (diff)
downloadCMake-fe3f846e1b88341529686ee7dd334b01fe9e705e.zip
CMake-fe3f846e1b88341529686ee7dd334b01fe9e705e.tar.gz
CMake-fe3f846e1b88341529686ee7dd334b01fe9e705e.tar.bz2
Makefiles: Add support for building Fortran intrinsics
Fixes: #21463
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 6d8376c..d6145f8 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -1380,6 +1380,13 @@ void cmMakefileTargetGenerator::WriteTargetDependRules()
<< "set(CMAKE_Fortran_TARGET_MODULE_DIR \""
<< this->GeneratorTarget->GetFortranModuleDirectory(working_dir)
<< "\")\n";
+
+ if (this->GeneratorTarget->IsFortranBuildingInstrinsicModules()) {
+ *this->InfoFileStream
+ << "\n"
+ << "# Fortran compiler is building intrinsic modules.\n"
+ << "set(CMAKE_Fortran_TARGET_BUILDING_INSTRINSIC_MODULES ON) \n";
+ }
/* clang-format on */
// and now write the rule to use it