diff options
author | Brad King <brad.king@kitware.com> | 2017-11-21 19:40:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-21 19:44:01 (GMT) |
commit | f19c70c3d29f277f82f18820d36ca17e9ba398ae (patch) | |
tree | c6f63181636533d673dcf4d9ad9c85679f94e77e /Source/cmNinjaTargetGenerator.cxx | |
parent | baa19f658f947047dddac0228bcd52591829983d (diff) | |
download | CMake-f19c70c3d29f277f82f18820d36ca17e9ba398ae.zip CMake-f19c70c3d29f277f82f18820d36ca17e9ba398ae.tar.gz CMake-f19c70c3d29f277f82f18820d36ca17e9ba398ae.tar.bz2 |
Fortran: Add option to run the compiler through launcher tools
Add a `Fortran_COMPILER_LAUNCHER` target property like those added for C
and CXX by commit v3.4.0-rc1~450^2 (Add options to launch the compiler
through tools like ccache or distcc, 2015-06-04) and CUDA by commit
v3.10.0-rc1~531^2 (CUDA: Add option to run the compiler through launcher
tools, 2017-06-09).
Fixes: #17499
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 5805259..0262b3c 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -647,7 +647,7 @@ void cmNinjaTargetGenerator::WriteCompileRule(const std::string& lang) // Maybe insert a compiler launcher like ccache or distcc if (!compileCmds.empty() && - (lang == "C" || lang == "CXX" || lang == "CUDA")) { + (lang == "C" || lang == "CXX" || lang == "Fortran" || lang == "CUDA")) { std::string const clauncher_prop = lang + "_COMPILER_LAUNCHER"; const char* clauncher = this->GeneratorTarget->GetProperty(clauncher_prop); if (clauncher && *clauncher) { |