diff options
author | Brad King <brad.king@kitware.com> | 2016-06-16 15:14:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-17 18:49:29 (GMT) |
commit | 5467e7945d46f5f8540a6e11933c9b6b584036a2 (patch) | |
tree | e3a21119976015761066e4c9a3821b6b85bb1873 /Source/cmLocalGenerator.cxx | |
parent | 49f10f0d24420f7d96c5153ba64a16b3f43c4736 (diff) | |
download | CMake-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.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 2f50b7f..a0263e4 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1344,6 +1344,13 @@ void cmLocalGenerator::GetTargetDefines(cmGeneratorTarget const* target, this->AddCompileDefinitions(defines, target, config, lang.c_str()); } +std::string cmLocalGenerator::GetTargetFortranFlags(cmGeneratorTarget const*, + std::string const&) +{ + // Implemented by specific generators that override this. + return std::string(); +} + std::string cmLocalGenerator::ConvertToLinkReference(std::string const& lib, OutputFormat format) { |