summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2023-01-04 10:48:53 +0100
committerJo-Philipp Wich <jo@mein.io>2023-01-06 10:43:21 +0100
commitff32355ea6455a59f769f96fdeee7dd055f40e50 (patch)
tree69e630efde8cc26d5cb96edd54b5493ee1578470
parent34cfbb922c9635243935b360af3af5b163582a9a (diff)
build: make rtnl/nl80211 depend on linux instead of !APPLE
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--CMakeLists.txt10
1 files changed, 2 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 45de57a..6506b1a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,18 +19,12 @@ IF(NOT COMPILE_SUPPORT)
ADD_DEFINITIONS(-DNO_COMPILE)
ENDIF()
-IF(APPLE)
- SET(NOT_APPLE OFF)
-ELSE()
- SET(NOT_APPLE ON)
-ENDIF()
-
OPTION(FS_SUPPORT "Filesystem plugin support" ON)
OPTION(MATH_SUPPORT "Math plugin support" ON)
OPTION(UBUS_SUPPORT "Ubus plugin support" ON)
OPTION(UCI_SUPPORT "UCI plugin support" ON)
-OPTION(RTNL_SUPPORT "Route Netlink plugin support" ${NOT_APPLE})
-OPTION(NL80211_SUPPORT "Wireless Netlink plugin support" ${NOT_APPLE})
+OPTION(RTNL_SUPPORT "Route Netlink plugin support" ${LINUX})
+OPTION(NL80211_SUPPORT "Wireless Netlink plugin support" ${LINUX})
OPTION(RESOLV_SUPPORT "NS resolve plugin support" ON)
OPTION(STRUCT_SUPPORT "Struct plugin support" ON)
OPTION(ULOOP_SUPPORT "Uloop plugin support" ON)