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.
This commit is contained in:
Brad King 2015-05-10 09:05:52 -04:00
parent 6831f91a6c
commit 231601b696
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ bool cmBuildCommand
std::string configType = "Release";
const char* cfg = getenv("CMAKE_CONFIG_TYPE");
if ( cfg )
if ( cfg && *cfg )
{
configType = cfg;
}