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()