summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-09-03 15:30:00 (GMT)
committervvs31415 <vvs31415@users.noreply.github.com>2020-09-03 15:36:54 (GMT)
commit1380b4376408a1ec97bc23f521c067a83dc58680 (patch)
treee51d8351d2b61d08a6798fa3a71578c75fba458d /Source/cmTarget.cxx
parentca5babfd7a1da8e32f927ad086fdd91c2b09853b (diff)
downloadCMake-1380b4376408a1ec97bc23f521c067a83dc58680.zip
CMake-1380b4376408a1ec97bc23f521c067a83dc58680.tar.gz
CMake-1380b4376408a1ec97bc23f521c067a83dc58680.tar.bz2
Refactor: Use cmToCStr()
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index ba648b7..7e8e931 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1330,7 +1330,7 @@ void cmTarget::SetProperty(const std::string& prop, const char* value)
cmStrCat(reusedFrom, ".dir/"));
cmProp tmp = reusedTarget->GetProperty("COMPILE_PDB_NAME");
- this->SetProperty("COMPILE_PDB_NAME", tmp ? tmp->c_str() : nullptr);
+ this->SetProperty("COMPILE_PDB_NAME", cmToCStr(tmp));
this->AddUtility(reusedFrom, false, impl->Makefile);
} else if (prop == propC_STANDARD || prop == propCXX_STANDARD ||
prop == propCUDA_STANDARD || prop == propOBJC_STANDARD ||