summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-21 17:20:10 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-23 12:56:51 (GMT)
commit6fd7ca5e5126067b2b346b76473adf240fcd8151 (patch)
treec2c297361e8db2f515d4eadb01bc35db3e422ddb /Source
parent2f44a6a4990497c45eb882e625b2204a372ffaf0 (diff)
downloadCMake-6fd7ca5e5126067b2b346b76473adf240fcd8151.zip
CMake-6fd7ca5e5126067b2b346b76473adf240fcd8151.tar.gz
CMake-6fd7ca5e5126067b2b346b76473adf240fcd8151.tar.bz2
cmTarget: Skip output dir property init for CMake-provided targets
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTarget.cxx3
1 files changed, 2 insertions, 1 deletions
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_",