From 231601b696d79075b9c0fe346a8b336f291f6829 Mon Sep 17 00:00:00 2001 From: Brad King Date: Sun, 10 May 2015 09:05:52 -0400 Subject: [PATCH] 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. --- Source/cmBuildCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmBuildCommand.cxx b/Source/cmBuildCommand.cxx index 988e9a781..27b959c31 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; }