[CMake] CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE

Micha Renner Micha.Renner at t-online.de
Mon Mar 31 03:35:28 EDT 2014


Hallo,

The Documentation says: Automatically add the current source- and build
directories to the INTERFACE_INCLUDE_DIRECTORIES.
How can I get this information?


SET(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
ADD_LIBRARY(TLib1 SHARED tlib1.c tlib1.h)
GET_TARGET_PROPERTY(TLIB1_INTERFACE_INCLUDE_DIRECTORIES TLib1
INTERFACE_INCLUDE_DIRECTORIES)

Results in TLIB1_INTERFACE_INCLUDE_DIRECTORIES-NOTFOUND.
Any ideas?

Greetings Micha





More information about the CMake mailing list