[CMake] Reason of Fortran include directories /config?
Petr Kmoch
petr.kmoch at gmail.com
Thu May 10 03:25:40 EDT 2012
Hi all,
we're using cmake to generate Intel Fortran .vfproj files and some of
my developers were asking why include directories in the project
always include X and X/<config_name> for every directory X specified
via include_directories(). Looking at cmake source code, the lines
responsible seem to be 829-837 of cmLocalVisualStudio7Generator.cxx
(in the 2.8.8 released archive):
// if this is fortran then output the include with
// a ConfigurationName on the end of it.
if(this->FortranProject)
{
ipath = i->c_str();
ipath += "/$(ConfigurationName)";
ipath = this->ConvertToXMLOutputPath(ipath.c_str());
fout << ipath << ";";
}
}
I would be really interested in the reason for this behaviour. Could
anyone shed some light onto this for me?
Thanks in advance.
Petr
More information about the CMake
mailing list