Skip to content

Commit

Permalink
Recover pybind11 fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
rauletorresc committed Dec 19, 2024
1 parent 8a845ab commit e31e661
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/catalyst/third_party/oqc/src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,16 @@ target_include_directories(runner_tests_oqc PRIVATE

target_link_directories(runner_tests_oqc PRIVATE ${runtime_lib})

# Locate PyBind11
execute_process(
COMMAND "${Python_EXECUTABLE}" -c "import pybind11; print(pybind11.get_cmake_dir())"
OUTPUT_VARIABLE pybind11_DIR OUTPUT_STRIP_TRAILING_WHITESPACE
)
find_package(pybind11 CONFIG REQUIRED)

target_link_libraries(runner_tests_oqc PRIVATE
Catch2::Catch2
pybind11::embed
${OQC_LIBRARIES}
)

Expand Down

0 comments on commit e31e661

Please sign in to comment.