From 4df215a268267b457cc6e5cf2bfc23d1c8de7b11 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 15 Jun 2004 11:52:58 -0400 Subject: [PATCH] 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. --- Source/cmLocalUnixMakefileGenerator.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index b34fab7ef..f9b4c7ebb 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -2493,8 +2493,6 @@ void cmLocalUnixMakefileGenerator::OutputMakeVariables(std::ostream& fout) fout << "INCLUDE_FLAGS = "; std::vector& includes = m_Makefile->GetIncludeDirectories(); std::vector::iterator i; - fout << "-I" << - this->ConvertToOutputForExisting(m_Makefile->GetStartDirectory()) << " "; std::map implicitIncludes; implicitIncludes["/usr/include"] = "/usr/include"; if(m_Makefile->GetDefinition("CMAKE_PLATFORM_IMPLICIT_INCLUDE_DIRECTORIES"))