cmTarget: Skip output dir property init for CMake-provided targets

This commit is contained in:
Brad King
2020-07-21 13:20:10 -04:00
parent 2f44a6a499
commit 6fd7ca5e51

View File

@@ -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_",