Skip to content

Commit 09c4286

Browse files
eunos-1128Copilot
andcommitted
Fix conditional for Python module to require built-in pybind11
Co-authored-by: Copilot <copilot@github.com>
1 parent 82c2855 commit 09c4286

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ if(KOMPUTE_OPT_INSTALL)
122122
EXPORT komputeTargets)
123123
endif ()
124124

125-
if(KOMPUTE_OPT_BUILD_PYTHON)
125+
if(KOMPUTE_OPT_BUILD_PYTHON AND KOMPUTE_OPT_USE_BUILT_IN_PYBIND11)
126126
# We can't export pybind11::headers because it's alias target, so we unwrap the alias and install it.
127127
get_target_property(pybind11_aliased_target pybind11::headers ALIASED_TARGET)
128128
install(TARGETS ${pybind11_aliased_target}
129129
EXPORT komputeTargets)
130130
endif ()
131-
endif()
131+
endif()

0 commit comments

Comments
 (0)