summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-01-30 15:36:44 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-02-14 17:33:58 (GMT)
commitc97de1047f2fd08a74c42982012e8bb96a5e2f89 (patch)
treee72fb32152d5e30701a94d597cb9c089f0ed57f8 /Source/cmMakefile.h
parent1d0426f6426ef88342f3a57fb555a2b2d8891712 (diff)
downloadCMake-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.h5
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,