diff options
Diffstat (limited to 'cmake/SlangTarget.cmake')
| -rw-r--r-- | cmake/SlangTarget.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/SlangTarget.cmake b/cmake/SlangTarget.cmake index fdf3458cf..07409a960 100644 --- a/cmake/SlangTarget.cmake +++ b/cmake/SlangTarget.cmake @@ -60,6 +60,7 @@ function(slang_add_target dir type) INCLUDE_FROM_PRIVATE # Any include directories other targets need to use this target INCLUDE_DIRECTORIES_PUBLIC + INCLUDE_DIRECTORIES_PRIVATE # Add a dependency on the new target to the specified targets REQUIRED_BY # Add a dependency to the new target on the specified targets @@ -234,6 +235,13 @@ function(slang_add_target dir type) PUBLIC "$<BUILD_INTERFACE:${inc_abs}>" ) endforeach() + foreach(inc ${ARG_INCLUDE_DIRECTORIES_PRIVATE}) + get_filename_component(inc_abs ${inc} ABSOLUTE) + target_include_directories( + ${target} + PRIVATE "$<BUILD_INTERFACE:${inc_abs}>" + ) + endforeach() # # Set up export macros |
