diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-01-30 15:36:44 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-02-14 17:33:58 (GMT) |
commit | c97de1047f2fd08a74c42982012e8bb96a5e2f89 (patch) | |
tree | e72fb32152d5e30701a94d597cb9c089f0ed57f8 /Source/cmMakefile.h | |
parent | 1d0426f6426ef88342f3a57fb555a2b2d8891712 (diff) | |
download | CMake-c97de1047f2fd08a74c42982012e8bb96a5e2f89.zip CMake-c97de1047f2fd08a74c42982012e8bb96a5e2f89.tar.gz CMake-c97de1047f2fd08a74c42982012e8bb96a5e2f89.tar.bz2 |
cmMakefile: add support for a "synthesized" target
It is a normal target, but will end up copying its internals from
another target. Keep track of this state so that such copying can only
occur when intended.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 3866aca..7b19c97 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -241,10 +241,13 @@ public: std::pair<cmTarget&, bool> CreateNewTarget( const std::string& name, cmStateEnums::TargetType type, - cmTarget::PerConfig perConfig = cmTarget::PerConfig::Yes); + cmTarget::PerConfig perConfig = cmTarget::PerConfig::Yes, + cmTarget::Visibility vis = cmTarget::Visibility::Normal); cmTarget* AddNewTarget(cmStateEnums::TargetType type, const std::string& name); + cmTarget* AddSynthesizedTarget(cmStateEnums::TargetType type, + const std::string& name); /** Create a target instance for the utility. */ cmTarget* AddNewUtilityTarget(const std::string& utilityName, |