Skip to content

Commit

Permalink
Add header files to ClangEnzyme target (#2062)
Browse files Browse the repository at this point in the history
* Add header files to ClangEnzyme target

* different header install approach
  • Loading branch information
jandrej authored Oct 18, 2024
1 parent a870de9 commit 7f5a11d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions enzyme/Enzyme/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7f5a11d

Please sign in to comment.