ENH: Removed addition of compiler support directory include option since the find_*_options scripts now include it automatically.
This commit is contained in:
parent
a14057c1b3
commit
55e453a317
|
@ -197,21 +197,21 @@ bool cmConfigureGccXmlCommand::FindGccIncludeFlags()
|
|||
return false;
|
||||
}
|
||||
|
||||
// Strip newline from end of flags.
|
||||
if((flags.length() > 0)
|
||||
&& (flags[flags.length()-1] == '\n'))
|
||||
{
|
||||
flags = flags.substr(0, flags.length()-1);
|
||||
if((flags.length() > 0)
|
||||
&& (flags[flags.length()-1] == '\r'))
|
||||
{
|
||||
flags = flags.substr(0, flags.length()-1);
|
||||
}
|
||||
}
|
||||
|
||||
// Use the result of the command as the flags.
|
||||
m_Flags = flags;
|
||||
|
||||
// Strip newline from end of flags.
|
||||
if((m_Flags.length() > 0)
|
||||
&& (m_Flags[m_Flags.length()-1] == '\n'))
|
||||
{
|
||||
m_Flags = m_Flags.substr(0, m_Flags.length()-1);
|
||||
if((m_Flags.length() > 0)
|
||||
&& (m_Flags[m_Flags.length()-1] == '\r'))
|
||||
{
|
||||
m_Flags = m_Flags.substr(0, m_Flags.length()-1);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -238,22 +238,21 @@ bool cmConfigureGccXmlCommand::FindMproIncludeFlags()
|
|||
return false;
|
||||
}
|
||||
|
||||
// Use the result of the command as the flags. Also prefix on the
|
||||
// include path flag for the support directory.
|
||||
m_Flags = "-I"+supportDir+" "+flags;
|
||||
|
||||
// Strip newline from end of flags.
|
||||
if((m_Flags.length() > 0)
|
||||
&& (m_Flags[m_Flags.length()-1] == '\n'))
|
||||
if((flags.length() > 0)
|
||||
&& (flags[flags.length()-1] == '\n'))
|
||||
{
|
||||
m_Flags = m_Flags.substr(0, m_Flags.length()-1);
|
||||
if((m_Flags.length() > 0)
|
||||
&& (m_Flags[m_Flags.length()-1] == '\r'))
|
||||
flags = flags.substr(0, flags.length()-1);
|
||||
if((flags.length() > 0)
|
||||
&& (flags[flags.length()-1] == '\r'))
|
||||
{
|
||||
m_Flags = m_Flags.substr(0, m_Flags.length()-1);
|
||||
flags = flags.substr(0, flags.length()-1);
|
||||
}
|
||||
}
|
||||
|
||||
// Use the result of the command as the flags.
|
||||
m_Flags = flags;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue