Skip to content

Commit d815017

Browse files
committed
cmake error corrected
1 parent 3691e9e commit d815017

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

deps/patchelf/CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ set(PATCHELF_HDR ${PATCHELF_DIR}/elf.h ${PATCHELF_DIR}/patchelf.h)
77

88
add_library (patchelf SHARED ${PATCHELF_SRC})
99

10-
target_include_directories(patchelf PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/patchelf>"
11-
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
10+
target_include_directories(patchelf PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>"
11+
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
1212

1313
install(TARGETS patchelf
14+
EXPORT hal
1415
LIBRARY DESTINATION ${LIBRARY_INSTALL_DIRECTORY}
1516
PERMISSIONS
1617
OWNER_READ
@@ -22,6 +23,5 @@ install(TARGETS patchelf
2223
WORLD_EXECUTE
2324
)
2425

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

0 commit comments

Comments
 (0)