summaryrefslogtreecommitdiffstats
path: root/Source/cmTestGenerator.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-07-15 14:53:35 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-07-15 14:53:43 (GMT)
commit63ecf481da4d88196410ca67ebd0c9aa69f2e036 (patch)
tree67d0887bbd39819d995280b3e8ff575066bc4929 /Source/cmTestGenerator.cxx
parent36e00f9c843d2e03661119182fd98f0668320e09 (diff)
parenteaad8072eefb9cbb7bf60d9753492e6fb604fd09 (diff)
downloadCMake-63ecf481da4d88196410ca67ebd0c9aa69f2e036.zip
CMake-63ecf481da4d88196410ca67ebd0c9aa69f2e036.tar.gz
CMake-63ecf481da4d88196410ca67ebd0c9aa69f2e036.tar.bz2
Merge topic 'cmnonempty'
eaad8072ee cmNonempty: Convenience inlines to check for non-empty string Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5017
Diffstat (limited to 'Source/cmTestGenerator.cxx')
-rw-r--r--Source/cmTestGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTestGenerator.cxx b/Source/cmTestGenerator.cxx
index e10a8e2..7c0ce71 100644
--- a/Source/cmTestGenerator.cxx
+++ b/Source/cmTestGenerator.cxx
@@ -102,7 +102,7 @@ void cmTestGenerator::GenerateScriptForConfig(std::ostream& os,
// Prepend with the emulator when cross compiling if required.
cmProp emulator = target->GetProperty("CROSSCOMPILING_EMULATOR");
- if (emulator != nullptr && !emulator->empty()) {
+ if (cmNonempty(emulator)) {
std::vector<std::string> emulatorWithArgs = cmExpandedList(*emulator);
std::string emulatorExe(emulatorWithArgs[0]);
cmSystemTools::ConvertToUnixSlashes(emulatorExe);