summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-11-13 13:58:33 (GMT)
committerBrad King <brad.king@kitware.com>2019-11-15 14:47:56 (GMT)
commitbb4c2781ced335c81b3c9307069792dba66d5062 (patch)
treeea358abcc1a7c33124e161225c339eaf32b67977 /Source/cmTarget.cxx
parent28bc41ca62b00d5c265c83436f317f970a4b9a93 (diff)
downloadCMake-bb4c2781ced335c81b3c9307069792dba66d5062.zip
CMake-bb4c2781ced335c81b3c9307069792dba66d5062.tar.gz
CMake-bb4c2781ced335c81b3c9307069792dba66d5062.tar.bz2
PCH: Do not issue an error on duplicate target_precompile_headers call
Fixes: #19970
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 99c16f2..2db89de 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1288,11 +1288,8 @@ void cmTarget::SetProperty(const std::string& prop, const char* value)
reusedTarget->SetProperty("COMPILE_PDB_OUTPUT_DIRECTORY",
cmStrCat(reusedFrom, ".dir/").c_str());
- for (auto p : { "COMPILE_PDB_NAME", "PRECOMPILE_HEADERS",
- "INTERFACE_PRECOMPILE_HEADERS" }) {
- this->SetProperty(p, reusedTarget->GetProperty(p));
- }
-
+ this->SetProperty("COMPILE_PDB_NAME",
+ reusedTarget->GetProperty("COMPILE_PDB_NAME"));
this->AddUtility(reusedFrom, impl->Makefile);
} else {
impl->Properties.SetProperty(prop, value);