From d9e471d125c397f05c7697ea1d6ed5ea5912bc4c Mon Sep 17 00:00:00 2001 From: Raul Torres Date: Wed, 30 Oct 2024 18:08:42 +0200 Subject: [PATCH] Use the same path for fetched headers for LK and LQ --- .../src/simulators/lightning_kokkos/catalyst/CMakeLists.txt | 6 +++--- .../src/simulators/lightning_qubit/catalyst/CMakeLists.txt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pennylane_lightning/core/src/simulators/lightning_kokkos/catalyst/CMakeLists.txt b/pennylane_lightning/core/src/simulators/lightning_kokkos/catalyst/CMakeLists.txt index cdf057090..c2c1ef287 100644 --- a/pennylane_lightning/core/src/simulators/lightning_kokkos/catalyst/CMakeLists.txt +++ b/pennylane_lightning/core/src/simulators/lightning_kokkos/catalyst/CMakeLists.txt @@ -43,7 +43,7 @@ else() ${HEADER_NAME} URL https://raw.githubusercontent.com/PennyLaneAI/catalyst/${CATALYST_GIT_TAG}/runtime/lib/backend/common/${HEADER} DOWNLOAD_NO_EXTRACT True - SOURCE_DIR include + SOURCE_DIR ../../include ) FetchContent_MakeAvailable(${HEADER_NAME}) @@ -63,13 +63,13 @@ else() ${HEADER_NAME} URL https://raw.githubusercontent.com/PennyLaneAI/catalyst/${CATALYST_GIT_TAG}/runtime/include/${HEADER} DOWNLOAD_NO_EXTRACT True - SOURCE_DIR include + SOURCE_DIR ../../include ) FetchContent_MakeAvailable(${HEADER_NAME}) endforeach() - target_include_directories(lightning_kokkos_catalyst PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/include) + target_include_directories(lightning_kokkos_catalyst PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/../../include) endif() diff --git a/pennylane_lightning/core/src/simulators/lightning_qubit/catalyst/CMakeLists.txt b/pennylane_lightning/core/src/simulators/lightning_qubit/catalyst/CMakeLists.txt index e0e9ee29d..2b10bfb09 100644 --- a/pennylane_lightning/core/src/simulators/lightning_qubit/catalyst/CMakeLists.txt +++ b/pennylane_lightning/core/src/simulators/lightning_qubit/catalyst/CMakeLists.txt @@ -43,7 +43,7 @@ else() ${HEADER_NAME} URL https://raw.githubusercontent.com/PennyLaneAI/catalyst/${CATALYST_GIT_TAG}/runtime/lib/backend/common/${HEADER} DOWNLOAD_NO_EXTRACT True - SOURCE_DIR include + SOURCE_DIR ../../include ) FetchContent_MakeAvailable(${HEADER_NAME}) @@ -63,13 +63,13 @@ else() ${HEADER_NAME} URL https://raw.githubusercontent.com/PennyLaneAI/catalyst/${CATALYST_GIT_TAG}/runtime/include/${HEADER} DOWNLOAD_NO_EXTRACT True - SOURCE_DIR include + SOURCE_DIR ../../include ) FetchContent_MakeAvailable(${HEADER_NAME}) endforeach() - target_include_directories(lightning_qubit_catalyst PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/include) + target_include_directories(lightning_qubit_catalyst PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/../../include) endif()