summaryrefslogtreecommitdiff
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-01-30 16:19:14 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2023-02-14 12:23:15 -0500
commit5b5869532145ff4425d7abfd09eaae6a638b6810 (patch)
tree7914bc6f0c7ef70f01a43c580c5bdb11ce859f88 /Source/cmGeneratorTarget.cxx
parent283432a1aaa72cd0dc5c0bd0e301bccfd52edd01 (diff)
downloadcmake-5b5869532145ff4425d7abfd09eaae6a638b6810.tar.gz
cmTarget: store visibility as an `enum` rather than bools
C++ modules are going to introduce a third concept of "synthesized" targets, so update logic where needed to avoid assuming "not imported? must be normal". Also add an accessor method to perform queries against the visibility.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index f83be264e8..22025071e1 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -1237,6 +1237,11 @@ bool cmGeneratorTarget::IsInBuildSystem() const
return false;
}
+bool cmGeneratorTarget::IsNormal() const
+{
+ return this->Target->IsNormal();
+}
+
bool cmGeneratorTarget::IsImported() const
{
return this->Target->IsImported();