diff options
author | Brad King <brad.king@kitware.com> | 2020-04-28 11:09:03 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-04-28 11:10:07 (GMT) |
commit | 0ce29c7c1dff5b9b4a2eac5137e05474dc552358 (patch) | |
tree | 84374b73ec899128afd2bc697fb588fe5cb7d0df /Source/cmMakefileTargetGenerator.cxx | |
parent | 6b6f6e237b8a965dc2610986ffa33d1f0efb4b74 (diff) | |
parent | c4d09fdc6d563570ef779244751e0088c83ea096 (diff) | |
download | CMake-0ce29c7c1dff5b9b4a2eac5137e05474dc552358.zip CMake-0ce29c7c1dff5b9b4a2eac5137e05474dc552358.tar.gz CMake-0ce29c7c1dff5b9b4a2eac5137e05474dc552358.tar.bz2 |
Merge topic 'makefile-objc'
c4d09fdc6d Makefiles: Add Objective C/C++ compilations to compile_commands.json
98aa628f0b Makefiles: Scan Objective C/C++ preprocessor dependencies
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4675
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index b21946c..267d5e1 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -724,8 +724,9 @@ void cmMakefileTargetGenerator::WriteObjectRuleFiles( // At the moment, it is assumed that C, C++, Fortran, and CUDA have both // assembly and preprocessor capabilities. The same is true for the // ability to export compile commands - bool lang_has_preprocessor = ((lang == "C") || (lang == "CXX") || - (lang == "Fortran") || (lang == "CUDA")); + bool lang_has_preprocessor = + ((lang == "C") || (lang == "CXX") || (lang == "OBJC") || + (lang == "OBJCXX") || (lang == "Fortran") || (lang == "CUDA")); bool const lang_has_assembly = lang_has_preprocessor; bool const lang_can_export_cmds = lang_has_preprocessor; |