summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-04-07 20:49:07 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-04-11 17:41:40 (GMT)
commit05783b168d47c2062817d58cb0a905dd6893cf8b (patch)
tree671b0bad415aa64850bc97051f2ced469af3ed3d /Source/cmTarget.h
parent4515d82088c5dcd8e08e117532c500992262b84b (diff)
downloadCMake-05783b168d47c2062817d58cb0a905dd6893cf8b.zip
CMake-05783b168d47c2062817d58cb0a905dd6893cf8b.tar.gz
CMake-05783b168d47c2062817d58cb0a905dd6893cf8b.tar.bz2
cmFileSet: store visibility with the fileset
The visibility is intrinsic to the fileset, so store it with it. This avoids recalculating it on every addition to the fileset.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 1bbd0b0..3623854 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -12,6 +12,7 @@
#include <vector>
#include "cmAlgorithms.h"
+#include "cmFileSet.h"
#include "cmPolicies.h"
#include "cmStateTypes.h"
#include "cmStringAlgorithms.h"
@@ -19,7 +20,6 @@
#include "cmValue.h"
class cmCustomCommand;
-class cmFileSet;
class cmGlobalGenerator;
class cmInstallTargetGenerator;
class cmListFileBacktrace;
@@ -285,7 +285,8 @@ public:
const cmFileSet* GetFileSet(const std::string& name) const;
cmFileSet* GetFileSet(const std::string& name);
std::pair<cmFileSet*, bool> GetOrCreateFileSet(const std::string& name,
- const std::string& type);
+ const std::string& type,
+ cmFileSetVisibility vis);
std::vector<std::string> GetAllInterfaceFileSets() const;