summaryrefslogtreecommitdiff
path: root/Source/cmBuildCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-10 09:05:52 -0400
committerBrad King <brad.king@kitware.com>2015-05-12 09:06:48 -0400
commit231601b696d79075b9c0fe346a8b336f291f6829 (patch)
treec7f0a5d094b2d53cdcd25b8165d7ed09bd757ec7 /Source/cmBuildCommand.cxx
parent6831f91a6c6d4f5d194c7a035c8de45f203f9cf8 (diff)
downloadcmake-231601b696d79075b9c0fe346a8b336f291f6829.tar.gz
build_command: Choose configuration consistently across signatures
Teach the legacy two-argument signature to use CMAKE_CONFIG_TYPE from the environment only if it is non-empty. This makes behavior consistent with the main signature.
Diffstat (limited to 'Source/cmBuildCommand.cxx')
-rw-r--r--Source/cmBuildCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmBuildCommand.cxx b/Source/cmBuildCommand.cxx
index 988e9a781b..27b959c318 100644
--- a/Source/cmBuildCommand.cxx
+++ b/Source/cmBuildCommand.cxx
@@ -129,7 +129,7 @@ bool cmBuildCommand
std::string configType = "Release";
const char* cfg = getenv("CMAKE_CONFIG_TYPE");
- if ( cfg )
+ if ( cfg && *cfg )
{
configType = cfg;
}