summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-09-07 13:40:34 (GMT)
committerBrad King <brad.king@kitware.com>2001-09-07 13:40:34 (GMT)
commit55e453a317c27d0031a982dd7cb48ff4f849d6fd (patch)
tree867ea1195abf1739903b2e6d31ed67bde6db5d78 /Source
parenta14057c1b37e8672bfda8131ca2cd60dad0b2fca (diff)
downloadCMake-55e453a317c27d0031a982dd7cb48ff4f849d6fd.zip
CMake-55e453a317c27d0031a982dd7cb48ff4f849d6fd.tar.gz
CMake-55e453a317c27d0031a982dd7cb48ff4f849d6fd.tar.bz2
ENH: Removed addition of compiler support directory include option since the find_*_options scripts now include it automatically.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmConfigureGccXmlCommand.cxx43
1 files changed, 21 insertions, 22 deletions
diff --git a/Source/cmConfigureGccXmlCommand.cxx b/Source/cmConfigureGccXmlCommand.cxx
index b5864c7..65f0d9f 100644
--- a/Source/cmConfigureGccXmlCommand.cxx
+++ b/Source/cmConfigureGccXmlCommand.cxx
@@ -195,23 +195,23 @@ bool cmConfigureGccXmlCommand::FindGccIncludeFlags()
{
this->SetError("Could not run find_gcc_options!");
return false;
- }
-
- // 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'))
+ 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;
}
@@ -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;
}