From 6fd7ca5e5126067b2b346b76473adf240fcd8151 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 21 Jul 2020 13:20:10 -0400 Subject: cmTarget: Skip output dir property init for CMake-provided targets --- Source/cmTarget.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 0f0e35b..083095b 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -419,7 +419,8 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type, } // Setup per-configuration property default values. - if (this->GetType() != cmStateEnums::UTILITY) { + if (this->GetType() != cmStateEnums::UTILITY && + this->GetType() != cmStateEnums::GLOBAL_TARGET) { static const auto configProps = { /* clang-format needs this comment to break after the opening brace */ "ARCHIVE_OUTPUT_DIRECTORY_", "LIBRARY_OUTPUT_DIRECTORY_", -- cgit v0.12