diff options
author | Brad King <brad.king@kitware.com> | 2015-05-10 13:05:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-12 13:06:48 (GMT) |
commit | 231601b696d79075b9c0fe346a8b336f291f6829 (patch) | |
tree | c7f0a5d094b2d53cdcd25b8165d7ed09bd757ec7 /Source/cmBuildCommand.cxx | |
parent | 6831f91a6c6d4f5d194c7a035c8de45f203f9cf8 (diff) | |
download | CMake-231601b696d79075b9c0fe346a8b336f291f6829.zip CMake-231601b696d79075b9c0fe346a8b336f291f6829.tar.gz CMake-231601b696d79075b9c0fe346a8b336f291f6829.tar.bz2 |
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.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmBuildCommand.cxx b/Source/cmBuildCommand.cxx index 988e9a7..27b959c 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; } |