[CMake] CMAKE_INCLUDE_CURRENT_DIR only for out-of-source ?
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Mar 20 16:15:18 EST 2006
Hi,
in cmLocalGenerator.cxx there's the following code:
if(!inSource && this->Makefile->IsOn("CMAKE_INCLUDE_CURRENT_DIR"))
{
includeSourceDir = true;
includeBinaryDir = true;
}
Why is there the test for !inSource ?
This means if I have in one directory:
test1.h
main.c:
#include <test1.h>
int main()
{
...
}
This will work for out-of-source builds, but not for in-source builds.
I would have expected that the CMAKE_INCLUDE_CURRENT_DIR option also adds
CMAKE_CURRENT_SOURCE_DIR to the include path for in-source builds.
Are there special reasons why not ?
Bye
Alex
--
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
More information about the CMake
mailing list