mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
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:
@@ -129,7 +129,7 @@ bool cmBuildCommand
|
|||||||
|
|
||||||
std::string configType = "Release";
|
std::string configType = "Release";
|
||||||
const char* cfg = getenv("CMAKE_CONFIG_TYPE");
|
const char* cfg = getenv("CMAKE_CONFIG_TYPE");
|
||||||
if ( cfg )
|
if ( cfg && *cfg )
|
||||||
{
|
{
|
||||||
configType = cfg;
|
configType = cfg;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user