Skip to content

Commit

Permalink
Fix python build
Browse files Browse the repository at this point in the history
Signed-off-by: ToKiNoBug <[email protected]>
  • Loading branch information
ToKiNoBug committed Oct 28, 2023
1 parent fff1c7f commit cb12f08
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ if(KOMPUTE_OPT_INSTALL)
install(TARGETS ${fmt_aliased_target}
EXPORT komputeTargets)
endif ()

if(KOMPUTE_OPT_USE_BUILT_IN_VULKAN_HEADER)
# We can't export Vulkan::Headers because it's alias target, so we unwrap the alias and install it.
get_target_property(vk_header_target Vulkan::Headers ALIASED_TARGET)
Expand All @@ -116,4 +117,11 @@ if(KOMPUTE_OPT_INSTALL)
install(TARGETS ${vk_header_target}
EXPORT komputeTargets)
endif ()

if(KOMPUTE_OPT_BUILD_PYTHON)
# We can't export pybind11::headers because it's alias target, so we unwrap the alias and install it.
get_target_property(pybind11_aliased_target pybind11::headers ALIASED_TARGET)
install(TARGETS ${pybind11_aliased_target}
EXPORT komputeTargets)
endif ()
endif()

0 comments on commit cb12f08

Please sign in to comment.