Skip to content

Commit

Permalink
cmake error corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
joern274 committed Jan 26, 2025
1 parent 3691e9e commit d815017
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deps/patchelf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ set(PATCHELF_HDR ${PATCHELF_DIR}/elf.h ${PATCHELF_DIR}/patchelf.h)

add_library (patchelf SHARED ${PATCHELF_SRC})

target_include_directories(patchelf PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/patchelf>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
target_include_directories(patchelf PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")

install(TARGETS patchelf
EXPORT hal
LIBRARY DESTINATION ${LIBRARY_INSTALL_DIRECTORY}
PERMISSIONS
OWNER_READ
Expand All @@ -22,6 +23,5 @@ install(TARGETS patchelf
WORLD_EXECUTE
)

set_target_properties(patchelf PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/deps/patchelf"
)
# Install the headers to the include directory
install(FILES ${PATCHELF_HDR} DESTINATION include/patchelf)

0 comments on commit d815017

Please sign in to comment.