From 7f5a11d9feca2d19b52d65d7bd33b474471e9699 Mon Sep 17 00:00:00 2001 From: Julian Andrej <5412886+jandrej@users.noreply.github.com> Date: Thu, 17 Oct 2024 19:37:54 -0700 Subject: [PATCH] Add header files to ClangEnzyme target (#2062) * Add header files to ClangEnzyme target * different header install approach --- enzyme/Enzyme/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/enzyme/Enzyme/CMakeLists.txt b/enzyme/Enzyme/CMakeLists.txt index 77f95faed19..7e75716ec5f 100644 --- a/enzyme/Enzyme/CMakeLists.txt +++ b/enzyme/Enzyme/CMakeLists.txt @@ -206,20 +206,18 @@ install(TARGETS ClangEnzymeFlags EXPORT EnzymeTargets) install(TARGETS LLVMEnzyme-${LLVM_VERSION_MAJOR} EXPORT EnzymeTargets LIBRARY DESTINATION lib COMPONENT shlib - PUBLIC_HEADER DESTINATION "${INSTALL_INCLUDE_DIR}/Enzyme" COMPONENT dev) if (${Clang_FOUND}) install(TARGETS ClangEnzyme-${LLVM_VERSION_MAJOR} EXPORT EnzymeTargets LIBRARY DESTINATION lib COMPONENT shlib - PUBLIC_HEADER DESTINATION "${INSTALL_INCLUDE_DIR}/Enzyme" COMPONENT dev) + install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/enzyme" DESTINATION "include") endif() install(TARGETS LLDEnzyme-${LLVM_VERSION_MAJOR} EXPORT EnzymeTargets LIBRARY DESTINATION lib COMPONENT shlib - PUBLIC_HEADER DESTINATION "${INSTALL_INCLUDE_DIR}/Enzyme" COMPONENT dev) if (ENZYME_MLIR)