From fe30b6f9644aefe93b17f8562ff2368aab9c982d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 3 Jan 2013 14:13:13 +0100 Subject: link against libcrypt --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index afa2766..e354204 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,5 +8,10 @@ IF(APPLE) LINK_DIRECTORIES(/opt/local/lib) ENDIF() +FIND_LIBRARY(LIBS crypt) +IF(LIBS STREQUAL "LIBS-NOTFOUND") + SET(LIBS "") +ENDIF() + ADD_EXECUTABLE(uhttpd main.c listen.c client.c utils.c file.c auth.c cgi.c relay.c proc.c) -TARGET_LINK_LIBRARIES(uhttpd ubox ubus) +TARGET_LINK_LIBRARIES(uhttpd ubox ${LIBS}) -- cgit v1.2.3