projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix proto events for immediate proto handlers
[project/netifd.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
de0c74b
..
5b847ec
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-18,10
+18,11
@@
SET(SOURCES
SET(LIBS
ubox ubus uci json blobmsg_json)
SET(LIBS
ubox ubus uci json blobmsg_json)
-IF("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
+IF("${CMAKE_SYSTEM_NAME}" MATCHES "Linux"
AND NOT DUMMY_MODE
)
SET(SOURCES ${SOURCES} system-linux.c)
SET(LIBS ${LIBS} nl)
ELSE()
SET(SOURCES ${SOURCES} system-linux.c)
SET(LIBS ${LIBS} nl)
ELSE()
+ ADD_DEFINITIONS(-DDUMMY_MODE=1)
SET(SOURCES ${SOURCES} system-dummy.c)
ENDIF()
SET(SOURCES ${SOURCES} system-dummy.c)
ENDIF()