summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-16 15:14:18 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-17 18:49:29 (GMT)
commit5467e7945d46f5f8540a6e11933c9b6b584036a2 (patch)
treee3a21119976015761066e4c9a3821b6b85bb1873 /Source/cmLocalGenerator.h
parent49f10f0d24420f7d96c5153ba64a16b3f43c4736 (diff)
downloadCMake-5467e7945d46f5f8540a6e11933c9b6b584036a2.zip
CMake-5467e7945d46f5f8540a6e11933c9b6b584036a2.tar.gz
CMake-5467e7945d46f5f8540a6e11933c9b6b584036a2.tar.bz2
cmLocalGenerator: Add method to get Fortran-specific compiler flags
Add a cmLocalGenerator::GetTargetFortranFlags virtual method to get generator-specific generation of Fortran-specific flags. Implement it in cmLocalCommonGenerator by moving the implementation from cmCommonTargetGenerator::AddFortranFlags. This will allow it to be used without having a target generator available. Inspired-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'Source/cmLocalGenerator.h')
-rw-r--r--Source/cmLocalGenerator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
index af561f6..d04a723 100644
--- a/Source/cmLocalGenerator.h
+++ b/Source/cmLocalGenerator.h
@@ -321,6 +321,8 @@ public:
std::string GetFrameworkFlags(std::string const& l,
std::string const& config,
cmGeneratorTarget* target);
+ virtual std::string GetTargetFortranFlags(cmGeneratorTarget const* target,
+ std::string const& config);
virtual void ComputeObjectFilenames(
std::map<cmSourceFile const*, std::string>& mapping,