diff options
author | Brad King <brad.king@kitware.com> | 2021-01-07 13:22:20 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-01-07 13:22:27 (GMT) |
commit | 1cbbfbc78f7d22b89ccbce4cb5a4961afe943886 (patch) | |
tree | 5d80b2e8842bd72b834b55af7884bbbf0a899c50 /Source/cmNinjaTargetGenerator.cxx | |
parent | 455d016863534e748325ea01b3b33772de89798a (diff) | |
parent | a742b5d137d0855430a044dc4237de5aabfb08b4 (diff) | |
download | CMake-1cbbfbc78f7d22b89ccbce4cb5a4961afe943886.zip CMake-1cbbfbc78f7d22b89ccbce4cb5a4961afe943886.tar.gz CMake-1cbbfbc78f7d22b89ccbce4cb5a4961afe943886.tar.bz2 |
Merge topic 'export-compile-commands-per-target'
a742b5d137 CMAKE_EXPORT_COMPILE_COMMANDS: allow configuration per target
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5651
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 18c9d82..f1bd760 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -1536,7 +1536,7 @@ void cmNinjaTargetGenerator::ExportObjectCompileCommand( std::string const& objectFileDir, std::string const& flags, std::string const& defines, std::string const& includes) { - if (!this->Makefile->IsOn("CMAKE_EXPORT_COMPILE_COMMANDS")) { + if (!this->GeneratorTarget->GetPropertyAsBool("EXPORT_COMPILE_COMMANDS")) { return; } |