From 0973cd670231ec6a3e09cf22065e4b7dec4503f5 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 19 Oct 2023 22:38:13 -0400 Subject: cmNinjaTargetGenerator: use the file set visibility API --- Source/cmNinjaTargetGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index af47158..bb1d6f2 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -1060,7 +1060,7 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatements( this->GeneratorTarget->GetFileSetForSource( config, this->Makefile->GetOrCreateGeneratedSource(*it)); if (fileset && - fileset->GetVisibility() != cmFileSetVisibility::Private) { + cmFileSetVisibilityIsForInterface(fileset->GetVisibility())) { ++it; } else { ccouts_private.push_back(*it); -- cgit v0.12