diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-03 14:13:13 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-03 14:13:13 +0100 |
commit | fe30b6f9644aefe93b17f8562ff2368aab9c982d (patch) | |
tree | b6fc929dc95b84a3c4218009d257d87509a532cc /CMakeLists.txt | |
parent | 9c767787dba81bd5713e1a45eef8b381e7d4b79b (diff) |
link against libcrypt
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
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}) |