1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00

cmake: detect argp.h on osx

This commit is contained in:
Aris Adamantiadis
2016-03-14 22:27:06 +01:00
parent 4d43fbfb50
commit 5027627344
3 changed files with 9 additions and 4 deletions

View File

@ -8,13 +8,10 @@ set(examples_SRCS
include_directories(
${LIBSSH_PUBLIC_INCLUDE_DIRS}
${ARGP_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}
)
if (BSD OR SOLARIS OR OSX)
find_package(Argp)
endif (BSD OR SOLARIS OR OSX)
if (UNIX AND NOT WIN32)
add_executable(libssh_scp libssh_scp.c ${examples_SRCS})
target_link_libraries(libssh_scp ${LIBSSH_SHARED_LIBRARY})