add a variable to allow forcing dummy mode on linux systems
authorFelix Fietkau <nbd@openwrt.org>
Sun, 2 Oct 2011 16:41:36 +0000 (18:41 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 2 Oct 2011 16:41:36 +0000 (18:41 +0200)
CMakeLists.txt

index 8fb8ae15a5baf90ab00ccd5d41fcf070aa919998..5b847ec466d7ce2070dab9e7134cf941c0e155ed 100644 (file)
@@ -18,7 +18,7 @@ SET(SOURCES
 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()