Link against libargp on non-linux platforms

This commit is contained in:
Dominik Schmidt 2012-02-22 12:05:16 +01:00 committed by Andreas Schneider
parent 593cd4514a
commit f08d145c39

View File

@ -9,6 +9,7 @@ set(CLIENT_PUBLIC_INCLUDE_DIRS
set(CLIENT_PRIVATE_INCLUDE_DIRS
${CMAKE_BINARY_DIR}
${CSYNC_PUBLIC_INCLUDE_DIRS}
${ARGP_INCLUDE_DIRS}
)
set(CLIENT_EXECUTABLE
@ -21,6 +22,10 @@ set(CLIENT_LINK_LIBRARIES
${CSYNC_LIBRARY}
)
if(NOT LINUX)
list(APPEND CLIENT_LINK_LIBRARIES ${ARGP_LIBRARIES})
endif()
set(client_SRCS
csync_client.c
csync_auth.c