Skip to content

Commit 5244b47

Browse files
committed
CMakeList.txt: Look for argp outside libc
As in Alpine Linux. Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 3f70d31 commit 5244b47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ add_definitions(-D_GNU_SOURCE -DDWARVES_MAJOR_VERSION=1)
5959
add_definitions(-D_GNU_SOURCE -DDWARVES_MINOR_VERSION=22)
6060
find_package(DWARF REQUIRED)
6161
find_package(ZLIB REQUIRED)
62+
find_package(argp REQUIRED)
6263

6364
# make sure git submodule(s) are checked out
6465
find_package(Git QUIET)
@@ -120,7 +121,7 @@ endif()
120121
add_library(dwarves ${dwarves_LIB_SRCS})
121122
set_target_properties(dwarves PROPERTIES VERSION 1.0.0 SOVERSION 1)
122123
set_target_properties(dwarves PROPERTIES INTERFACE_LINK_LIBRARIES "")
123-
target_link_libraries(dwarves ${DWARF_LIBRARIES} ${ZLIB_LIBRARIES} ${LIBBPF_LIBRARIES})
124+
target_link_libraries(dwarves ${DWARF_LIBRARIES} ${ZLIB_LIBRARIES} ${LIBBPF_LIBRARIES} ${ARGP_LIBRARY})
124125

125126
set(dwarves_emit_LIB_SRCS dwarves_emit.c)
126127
add_library(dwarves_emit ${dwarves_emit_LIB_SRCS})

0 commit comments

Comments
 (0)