mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
Extract and use the INCLUDE_DIRECTORIES target properties.
Eliminate callers of cmMakefile::GetIncludeDirectories. All callers of GetIncludeDirectories should go through the local generator object. Only the local generator calls cmTarget::GetIncludeDirectories directly.
This commit is contained in:
committed by
David Cole
parent
840509babb
commit
9106b564ae
@@ -452,28 +452,6 @@ void cmLocalUnixMakefileGenerator3::WriteDirectoryInformationFile()
|
||||
<< "\n";
|
||||
}
|
||||
|
||||
// Store the include search path for this directory.
|
||||
infoFileStream
|
||||
<< "# The C and CXX include file search paths:\n";
|
||||
infoFileStream
|
||||
<< "SET(CMAKE_C_INCLUDE_PATH\n";
|
||||
std::vector<std::string> includeDirs;
|
||||
this->GetIncludeDirectories(includeDirs);
|
||||
for(std::vector<std::string>::iterator i = includeDirs.begin();
|
||||
i != includeDirs.end(); ++i)
|
||||
{
|
||||
infoFileStream
|
||||
<< " \"" << this->Convert(i->c_str(),HOME_OUTPUT).c_str() << "\"\n";
|
||||
}
|
||||
infoFileStream
|
||||
<< " )\n";
|
||||
infoFileStream
|
||||
<< "SET(CMAKE_CXX_INCLUDE_PATH ${CMAKE_C_INCLUDE_PATH})\n";
|
||||
infoFileStream
|
||||
<< "SET(CMAKE_Fortran_INCLUDE_PATH ${CMAKE_C_INCLUDE_PATH})\n";
|
||||
infoFileStream
|
||||
<< "SET(CMAKE_ASM_INCLUDE_PATH ${CMAKE_C_INCLUDE_PATH})\n";
|
||||
|
||||
// Store the include regular expressions for this directory.
|
||||
infoFileStream
|
||||
<< "\n"
|
||||
|
||||
Reference in New Issue
Block a user