Skip to content

Commit

Permalink
fix not using built-in pybind11
Browse files Browse the repository at this point in the history
If not using the built-in one, don't install the headers

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
airlied committed Apr 30, 2024
1 parent 654a6da commit 276306f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ if(KOMPUTE_OPT_INSTALL)
EXPORT komputeTargets)
endif ()

if(KOMPUTE_OPT_BUILD_PYTHON)
if(KOMPUTE_OPT_BUILD_PYTHON AND KOMPUTE_OPT_USE_BUILT_IN_PYBIND11)
# 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()
endif()

0 comments on commit 276306f

Please sign in to comment.