ENH: Fix support for debug postfix
This commit is contained in:
parent
038abb867e
commit
e6de1efcb8
|
@ -244,8 +244,7 @@ bool cmFileCommand::HandleInstallCommand(std::vector<std::string> const& args)
|
||||||
if ( build_type )
|
if ( build_type )
|
||||||
{
|
{
|
||||||
extra_dir = build_type;
|
extra_dir = build_type;
|
||||||
std::string btype = build_type;
|
std::string btype = cmSystemTools::LowerCase(build_type);
|
||||||
cmSystemTools::LowerCase(btype);
|
|
||||||
if ( btype == "debug" )
|
if ( btype == "debug" )
|
||||||
{
|
{
|
||||||
debug = 1;
|
debug = 1;
|
||||||
|
@ -359,7 +358,7 @@ bool cmFileCommand::HandleInstallCommand(std::vector<std::string> const& args)
|
||||||
case cmTarget::SHARED_LIBRARY:
|
case cmTarget::SHARED_LIBRARY:
|
||||||
if ( debug )
|
if ( debug )
|
||||||
{
|
{
|
||||||
fname = fnamewe + debug_postfix + "." + ext;
|
fname = fnamewe + debug_postfix + ext;
|
||||||
}
|
}
|
||||||
case cmTarget::EXECUTABLE:
|
case cmTarget::EXECUTABLE:
|
||||||
if ( extra_dir.size() > 0 )
|
if ( extra_dir.size() > 0 )
|
||||||
|
|
Loading…
Reference in New Issue