summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-06-15 15:52:58 (GMT)
committerBrad King <brad.king@kitware.com>2004-06-15 15:52:58 (GMT)
commit4df215a268267b457cc6e5cf2bfc23d1c8de7b11 (patch)
tree86d7c5bc5d0a8fff58b73a5ae54523eb93d6d073
parent1d061ae896cb9d96898b3161ed9f8cc279fdd6a5 (diff)
downloadCMake-4df215a268267b457cc6e5cf2bfc23d1c8de7b11.zip
CMake-4df215a268267b457cc6e5cf2bfc23d1c8de7b11.tar.gz
CMake-4df215a268267b457cc6e5cf2bfc23d1c8de7b11.tar.bz2
Removing automatic addition of a -I path for the current source directory.
This is not consistent with the Visual Studio generators which do not provide this path. It should not be added anyway because it is adding an include path not requested by the CMakeLists.txt code. The code I'm removing was originally added in revision 1.17 of cmUnixMakefileGenerator.cxx as a part of several other changes and has a commit log entry of "some bug fixes" It was propagated from their to cmLocalUnixMakefileGenerator.cxx. Since all our projects build in the VS IDE without this include path, it should not be needed. Users can easily fix problems caused by this by adding INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) to their CMakeLists.txt code. This was often necessary previously when a project was originally written on a Unix system and then built with Visual Studio.
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index b34fab7..f9b4c7e 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -2493,8 +2493,6 @@ void cmLocalUnixMakefileGenerator::OutputMakeVariables(std::ostream& fout)
fout << "INCLUDE_FLAGS = ";
std::vector<std::string>& includes = m_Makefile->GetIncludeDirectories();
std::vector<std::string>::iterator i;
- fout << "-I" <<
- this->ConvertToOutputForExisting(m_Makefile->GetStartDirectory()) << " ";
std::map<cmStdString, cmStdString> implicitIncludes;
implicitIncludes["/usr/include"] = "/usr/include";
if(m_Makefile->GetDefinition("CMAKE_PLATFORM_IMPLICIT_INCLUDE_DIRECTORIES"))