diff options
author | Brad King <brad.king@kitware.com> | 2018-09-18 15:17:45 +0000 |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-09-18 11:18:00 -0400 |
commit | a8f628c0a456f74680bfdad0050f2614dbe50853 (patch) | |
tree | f072a8939837a3d6f954993fdbb9b54e43cdf1f0 /Source/cmTarget.cxx | |
parent | 7adf3aabd55dd80784727a229a37c394740db628 (diff) | |
parent | f4ff60a803170311f49511a60a381eef8b78c5dd (diff) | |
download | cmake-a8f628c0a456f74680bfdad0050f2614dbe50853.tar.gz |
Merge topic 'getsafedef-stdstring'
f4ff60a803 cmMakefile: Make GetSafeDefinition return std::string const&
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2350
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index cd4022304c..4e353c7b78 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -190,13 +190,11 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type, // Check whether this is a DLL platform. this->DLLPlatform = - strcmp(this->Makefile->GetSafeDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX"), - "") != 0; + !this->Makefile->GetSafeDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX").empty(); // Check whether we are targeting an Android platform. this->IsAndroid = - strcmp(this->Makefile->GetSafeDefinition("CMAKE_SYSTEM_NAME"), - "Android") == 0; + (this->Makefile->GetSafeDefinition("CMAKE_SYSTEM_NAME") == "Android"); // Setup default property values. if (this->GetType() != cmStateEnums::INTERFACE_LIBRARY && |