summaryrefslogtreecommitdiffstats
path: root/Source/cmCustomCommand.h
diff options
context:
space:
mode:
authorAbdelmaged Khalifa <abdelmaged.khalifa@gmail.com>2023-02-11 23:00:40 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-14 13:56:59 (GMT)
commit082ccd75301cd02efd09bb9882bb9d2a8957193b (patch)
tree92611f898b4b3253c12687faa610f0bc8a0d0de8 /Source/cmCustomCommand.h
parent48c69eeafe5e480b5baa0c6766d4d2e3c7f5a4ad (diff)
downloadCMake-082ccd75301cd02efd09bb9882bb9d2a8957193b.zip
CMake-082ccd75301cd02efd09bb9882bb9d2a8957193b.tar.gz
CMake-082ccd75301cd02efd09bb9882bb9d2a8957193b.tar.bz2
add_custom_command: Add DEPENDS_EXPLICIT_ONLY option for Ninja
Add option `DEPENDS_EXPLICIT_ONLY` to `add_custom_command` to indicate that implicit dependencies coming from users of the output are not needed, and only consider dependencies explicitly specified in the custom command. Fixes: #17097
Diffstat (limited to 'Source/cmCustomCommand.h')
-rw-r--r--Source/cmCustomCommand.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmCustomCommand.h b/Source/cmCustomCommand.h
index 3671ad9..1e68dbf 100644
--- a/Source/cmCustomCommand.h
+++ b/Source/cmCustomCommand.h
@@ -102,6 +102,11 @@ public:
bool GetCommandExpandLists() const;
void SetCommandExpandLists(bool b);
+ /** Set/Get whether to use additional dependencies coming from
+ users of OUTPUT of the custom command. */
+ bool GetDependsExplicitOnly() const;
+ void SetDependsExplicitOnly(bool b);
+
/** Set/Get the depfile (used by the Ninja generator) */
const std::string& GetDepfile() const;
void SetDepfile(const std::string& depfile);
@@ -141,6 +146,7 @@ private:
bool CommandExpandLists = false;
bool StdPipesUTF8 = false;
bool HasMainDependency_ = false;
+ bool DependsExplicitOnly = false;
// Policies are NEW for synthesized custom commands, and set by cmMakefile for
// user-created custom commands.