cmTarget: Skip output dir property init for CMake-provided targets
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 @@
}
// 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_",