CMake/Tests/RunCMake/alias_targets/target_include_directories....

9 lines
170 B
CMake

enable_language(CXX)
add_library(foo empty.cpp)
add_library(alias ALIAS foo)
target_include_directories(alias PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)