CMake/Tests/RunCMake/COMPILE_LANGUAGE-genex/IncludeDirectories.cmake

6 lines
128 B
CMake

enable_language(CXX)
add_executable(main main.cpp)
target_include_directories(main PRIVATE $<$<COMPILE_LANGUAGE:CXX>:anydir>)