summaryrefslogtreecommitdiffstats
path: root/Source/cmTryRunCommand.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-30 17:27:35 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-30 17:27:35 (GMT)
commitc58c739da7287a1cb33558f4e121ecdb23cfadd9 (patch)
tree02cfdfecefc55588b853e4b7af30d46cb7a611d3 /Source/cmTryRunCommand.cxx
parent6b90e2850c1bd5df0aab0f1a93ea12f21bb9213f (diff)
downloadCMake-c58c739da7287a1cb33558f4e121ecdb23cfadd9.zip
CMake-c58c739da7287a1cb33558f4e121ecdb23cfadd9.tar.gz
CMake-c58c739da7287a1cb33558f4e121ecdb23cfadd9.tar.bz2
Use the empty method to check for emptiness
Diffstat (limited to 'Source/cmTryRunCommand.cxx')
-rw-r--r--Source/cmTryRunCommand.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmTryRunCommand.cxx b/Source/cmTryRunCommand.cxx
index 9457d5b..c4fc94e 100644
--- a/Source/cmTryRunCommand.cxx
+++ b/Source/cmTryRunCommand.cxx
@@ -86,8 +86,9 @@ bool cmTryRunCommand::InitialPass(std::vector<std::string> const& argv,
// although they could be used together, don't allow it, because
// using OUTPUT_VARIABLE makes crosscompiling harder
- if (this->OutputVariable.size() && (!this->RunOutputVariable.empty() ||
- !this->CompileOutputVariable.empty())) {
+ if (!this->OutputVariable.empty() &&
+ (!this->RunOutputVariable.empty() ||
+ !this->CompileOutputVariable.empty())) {
cmSystemTools::Error(
"You cannot use OUTPUT_VARIABLE together with COMPILE_OUTPUT_VARIABLE "
"or RUN_OUTPUT_VARIABLE. Please use only COMPILE_OUTPUT_VARIABLE and/or "