projects
/
project
/
uhttpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set the docroot to the current working directory if none is specified, fixes random...
[project/uhttpd.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
d7712e4
..
cd22fc7
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-1,8
+1,11
@@
cmake_minimum_required(VERSION 2.6)
PROJECT(uhttpd C)
cmake_minimum_required(VERSION 2.6)
PROJECT(uhttpd C)
+
+INCLUDE (CheckFunctionExists)
+
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
-ADD_DEFINITIONS(-O
0
-Wall -Werror -Wmissing-declarations --std=gnu99 -g3)
+ADD_DEFINITIONS(-O
s
-Wall -Werror -Wmissing-declarations --std=gnu99 -g3)
OPTION(TLS_SUPPORT "TLS support" ON)
OPTION(LUA_SUPPORT "Lua support" ON)
OPTION(TLS_SUPPORT "TLS support" ON)
OPTION(LUA_SUPPORT "Lua support" ON)
@@
-24,6
+27,11
@@
IF(TLS_SUPPORT)
ADD_DEFINITIONS(-DHAVE_TLS)
ENDIF()
ADD_DEFINITIONS(-DHAVE_TLS)
ENDIF()
+CHECK_FUNCTION_EXISTS(getspnam HAVE_SHADOW)
+IF(HAVE_SHADOW)
+ ADD_DEFINITIONS(-DHAVE_SHADOW)
+ENDIF()
+
ADD_EXECUTABLE(uhttpd ${SOURCES})
TARGET_LINK_LIBRARIES(uhttpd ubox dl ${LIBS})
ADD_EXECUTABLE(uhttpd ${SOURCES})
TARGET_LINK_LIBRARIES(uhttpd ubox dl ${LIBS})
@@
-60,7
+68,7
@@
ENDIF()
IF(UBUS_SUPPORT)
SET(PLUGINS ${PLUGINS} uhttpd_ubus)
ADD_DEFINITIONS(-DHAVE_UBUS)
IF(UBUS_SUPPORT)
SET(PLUGINS ${PLUGINS} uhttpd_ubus)
ADD_DEFINITIONS(-DHAVE_UBUS)
- ADD_LIBRARY(uhttpd_ubus MODULE ubus.c
ubus-session.c
)
+ ADD_LIBRARY(uhttpd_ubus MODULE ubus.c)
TARGET_LINK_LIBRARIES(uhttpd_ubus ubus ubox blobmsg_json json)
ENDIF()
TARGET_LINK_LIBRARIES(uhttpd_ubus ubus ubox blobmsg_json json)
ENDIF()