summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalCommonGenerator.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/cmLocalCommonGenerator.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/cmLocalCommonGenerator.h')
-rw-r--r--Source/cmLocalCommonGenerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmLocalCommonGenerator.h b/Source/cmLocalCommonGenerator.h
index 10380db..fd17ae3 100644
--- a/Source/cmLocalCommonGenerator.h
+++ b/Source/cmLocalCommonGenerator.h
@@ -33,6 +33,9 @@ public:
return this->WorkingDirectory;
}
+ std::string GetTargetFortranFlags(cmGeneratorTarget const* target,
+ std::string const& config);
+
protected:
cmOutputConverter::RelativeRoot WorkingDirectory;