[CMake] CMAKE_INCLUDE_CURRENT_DIR?

Kishore, Jonnalagadda (IE10) Kishore.Jonnalagadda at honeywell.com
Tue Mar 20 01:07:35 EST 2007


> Kishore, Jonnalagadda (IE10) wrote:
> >
> > If I understand you correctly, you mean to say that in the top level
> > CMakeLists.txt, if I SET(CMAKE_INCLUDE_CURRENT_DIR ON) and
> > INCLUDE_DIRECTORY(.) then all other subdirectories I add will all
> > automatically include the other directories?
> >
> > This however, is not the behavior I am observing. Setting
> > CMAKE_INCLUDE_CURRENT_DIR does not seem to have any effect.
> >
> 
> It is supposed to include CMAKE_CURRENT_SOURCE_DIR and
> CMAKE_CURRENT_BINARY_DIR in the *current* directory only.  The current
> source and binary directories are different for every subdirectory.
It
> doesn't pass any values between subdirectories.
 
This is now a little confusing especially, when the description says "
automatically add CMAKE_CURRENT_SOURCE_DIR and CMAKE_CURRENT_BINARY_DIR
to the include directories _in every directory_"

> Still a bug?

Let me check... OK. I still need to do INCLUDE_DIRECTORIES(.)!

Warm regards,
Kishore


More information about the CMake mailing list