diff options
author | Abdelmaged Khalifa <abdelmaged.khalifa@gmail.com> | 2023-02-17 13:11:01 (GMT) |
---|---|---|
committer | Abdelmaged Khalifa <abdelmaged.khalifa@gmail.com> | 2023-02-17 15:12:12 (GMT) |
commit | ea2a05f402d2e1090d8d1e92e67c08ac1e5af66a (patch) | |
tree | c82a237ca6fd9e37891d49fe459d8ae898cbd3e8 /Source/cmAddCustomCommandCommand.cxx | |
parent | 51c79170720abc16981381c924e2c50b5ed45ecf (diff) | |
download | CMake-ea2a05f402d2e1090d8d1e92e67c08ac1e5af66a.zip CMake-ea2a05f402d2e1090d8d1e92e67c08ac1e5af66a.tar.gz CMake-ea2a05f402d2e1090d8d1e92e67c08ac1e5af66a.tar.bz2 |
Add variable CMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY
Add CMake variable `CMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY` to enable
option `DEPENDS_EXPLICIT_ONLY` on all uses of `add_custom_command`.
Fixes: #17097
Diffstat (limited to 'Source/cmAddCustomCommandCommand.cxx')
-rw-r--r-- | Source/cmAddCustomCommandCommand.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmAddCustomCommandCommand.cxx b/Source/cmAddCustomCommandCommand.cxx index 65a8eb5..b1398db 100644 --- a/Source/cmAddCustomCommandCommand.cxx +++ b/Source/cmAddCustomCommandCommand.cxx @@ -49,7 +49,8 @@ bool cmAddCustomCommandCommand(std::vector<std::string> const& args, bool append = false; bool uses_terminal = false; bool command_expand_lists = false; - bool depends_explicit_only = false; + bool depends_explicit_only = + mf.IsOn("CMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY"); std::string implicit_depends_lang; cmImplicitDependsList implicit_depends; |