diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-07-27 19:00:00 -0400 |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-07-28 08:31:31 -0400 |
commit | f37c14e93036fe01fca3539f539ff8821494e9d1 (patch) | |
tree | fc08ddab0c3e9b47f00cff9a287cc89a2afa13ca /Source/cmSearchPath.cxx | |
parent | 261a2585d9df7113a5ba7c9beacb641754444523 (diff) | |
download | cmake-f37c14e93036fe01fca3539f539ff8821494e9d1.tar.gz |
Source: use cmNonempty()
Diffstat (limited to 'Source/cmSearchPath.cxx')
-rw-r--r-- | Source/cmSearchPath.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSearchPath.cxx b/Source/cmSearchPath.cxx index 766d3478b3..eb8fcaf3f5 100644 --- a/Source/cmSearchPath.cxx +++ b/Source/cmSearchPath.cxx @@ -180,7 +180,7 @@ void cmSearchPath::AddPrefixPaths(const std::vector<std::string>& paths, if (subdir == "include" || subdir == "lib") { const char* arch = this->FC->Makefile->GetDefinition("CMAKE_LIBRARY_ARCHITECTURE"); - if (arch && *arch) { + if (cmNonempty(arch)) { if (this->FC->Makefile->IsDefinitionSet("CMAKE_SYSROOT") && this->FC->Makefile->IsDefinitionSet( "CMAKE_PREFIX_LIBRARY_ARCHITECTURE")) { |