[CMake] Tracking include_directories behavior ?

Stephen Kelly steveire at gmail.com
Wed Jul 10 08:40:36 EDT 2013


Julien Malik wrote:

> Hello,
> 
> Is there a way to track the state of the include directories list during
> configuration ?

If you have CMake 2.8.11, you can add

 set(CMAKE_DEBUG_TARGET_PROPERTIES INCLUDE_DIRECTORIES)

Targets following that will print where their include directories come from 
during generation.

Apart from that, you can print the INCLUDE_DIRECTORIES directory 

 get_property(dirProp DIRECTORY PROPERTY INCLUDE_DIRECTORIES)
 message("Dirs: ${dirProp}")

Thanks,

Steve.




More information about the CMake mailing list