diff options
author | Brad King <brad.king@kitware.com> | 2015-05-18 17:31:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-18 19:01:06 (GMT) |
commit | a390de65e09e3ebc496fc14d40848ea4940cc9b0 (patch) | |
tree | f8d2c58ba7b46117e408af8378cfd79a3e370f5f /Source/cmNinjaTargetGenerator.h | |
parent | 00ccfff2bc06e640a185fb3d628ac36ea0b0fe9a (diff) | |
download | CMake-a390de65e09e3ebc496fc14d40848ea4940cc9b0.zip CMake-a390de65e09e3ebc496fc14d40848ea4940cc9b0.tar.gz CMake-a390de65e09e3ebc496fc14d40848ea4940cc9b0.tar.bz2 |
Ninja: Generate separate compile and link rules for each target
Our <LANG>_COMPILER and <LANG>_<TARGET_TYPE>_LINKER rule generation has
access to a specific cmTarget so the results may depend on it. Instead
generate separate rules for each target using an encoded target name.
In particular, this makes CTEST_USE_LAUNCHERS report proper target
information.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.h')
-rw-r--r-- | Source/cmNinjaTargetGenerator.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.h b/Source/cmNinjaTargetGenerator.h index 5733fde..4e7d8b3 100644 --- a/Source/cmNinjaTargetGenerator.h +++ b/Source/cmNinjaTargetGenerator.h @@ -67,8 +67,7 @@ protected: std::string const& GetConfigName() const; - std::string LanguageCompilerRule(const std::string& lang) const - { return lang + "_COMPILER"; } + std::string LanguageCompilerRule(const std::string& lang) const; const char* GetFeature(const std::string& feature); bool GetFeatureAsBool(const std::string& feature); |