Closed VincentRouvreau closed 2 months ago
I do not get it. Target properties like INCLUDE_DIRECTORIES
or INTERFACE_INCLUDE_DIRECTORIES
are not meant to be consumed by users of the target. They are set by CMake.
CGAL::CGAL
should actually have INTERFACE_INCLUDE_DIRECTORIES
empty, in favor of INTERFACE_SYSTEM_INCLUDE_DIRECTORIES
.
${CGAL_INCLUDE_DIRS}
is the contract we have with CGAL users, and should stay stable over versions of CGAL. Why does it not fit your needs? What are you trying to do?
Issue Details
It would be nice if
get_target_property(CGAL_TARGET_INCLUDE_DIRECTORIES CGAL::CGAL INCLUDE_DIRECTORIES)
was returning the CGAL include directory.Source Code
Here is a CMake file to reproduce the behaviour:
Environment