projects
/
project
/
odhcpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
router: fix compile issue on 64 bit systems
[project/odhcpd.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
4a774a0
..
8c338f3
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-7,12
+7,14
@@
project(odhcpd C)
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -std=c99")
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -std=c99")
+FIND_PATH(ubox_include_dir libubox/uloop.h)
+INCLUDE_DIRECTORIES(${ubox_include_dir})
add_definitions(-D_GNU_SOURCE -Wall -Werror -Wextra)
add_definitions(-D_GNU_SOURCE -Wall -Werror -Wextra)
-if
(${EXT_PREFIX_CLASS
})
- add_definitions(-DEXT_
PREFIX_CLASS=${EXT_PREFIX_CLASS
})
-endif(${EXT_
PREFIX_CLASS
})
+if
(${EXT_CER_ID
})
+ add_definitions(-DEXT_
CER_ID=${EXT_CER_ID
})
+endif(${EXT_
CER_ID
})
if(${UBUS})
add_definitions(-DWITH_UBUS)
if(${UBUS})
add_definitions(-DWITH_UBUS)
@@
-20,7
+22,7
@@
if(${UBUS})
set(EXT_LINK ${EXT_LINK} ubus)
endif(${UBUS})
set(EXT_LINK ${EXT_LINK} ubus)
endif(${UBUS})
-add_executable(odhcpd src/odhcpd.c src/config.c src/router.c src/dhcpv6.c src/ndp.c src/
md5.c src/
dhcpv6-ia.c src/dhcpv4.c ${EXT_SRC})
+add_executable(odhcpd src/odhcpd.c src/config.c src/router.c src/dhcpv6.c src/ndp.c src/dhcpv6-ia.c src/dhcpv4.c ${EXT_SRC})
target_link_libraries(odhcpd resolv ubox uci ${EXT_LINK})
# Installation
target_link_libraries(odhcpd resolv ubox uci ${EXT_LINK})
# Installation