[CMake] INCLUDE_DIRECTORIES empty?

Michael Wild themiwi at gmail.com
Wed Mar 17 09:48:56 EDT 2010


On 17. Mar, 2010, at 14:45 , David Doria wrote:

>> This is a read-only directory property:
>> 
>> http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_dir:INCLUDE_DIRECTORIES
>> 
>> Michael
> 
> That's ok, all I want to do is read it. That's why I thought it would just be:
> 
> MESSAGE("INCLUDE_DIRECTORIES: ${INCLUDE_DIRECTORIES}")
> 
> But I guess INCLUDE_DIRECTORIES is a function, not a variable? Which
> variable gets set when you call the INCLUDE_DIRECTORIES function then?
> 
> Thanks,
> 
> David

As I said, it's a directory-property:

get_property(inc_dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES)
message("inc_dirs = ${inc_dirs}")


Michael


More information about the CMake mailing list