diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-07-11 12:47:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-11 12:47:03 +0800 |
| commit | 6ed7e7f60b3e60be2589b2aa7e812f7315493db5 (patch) | |
| tree | 3ae231f8a750dd9502673385f85bbb9d629fac46 /cmake/SlangTarget.cmake | |
| parent | 49c56d742be12a8477eb7d6e2ffb637a6a153482 (diff) | |
Cope with failed version parsing (#4609)
* Cope with failed version parsing
* Better version parsing
* populate slang-tag-version with cmake
* Neaten cmake
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 |
