From 2975593227f0167e86c4f19e5cf95c7429295343 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 5 May 2014 11:22:25 -0700 Subject: libnl is a Linux-specific library; don't offer libnl support except on Linux. Change-Id: I79a98d1f9b3559fe76feed1038d673dd3424409c Reviewed-on: https://code.wireshark.org/review/1515 Reviewed-by: Guy Harris --- CMakeOptions.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeOptions.txt') diff --git a/CMakeOptions.txt b/CMakeOptions.txt index 7895348671..2a5969f0c1 100644 --- a/CMakeOptions.txt +++ b/CMakeOptions.txt @@ -58,7 +58,9 @@ option(ENABLE_GCRYPT "Build with GNU crypto support" ON) option(ENABLE_GEOIP "Build with GeoIP support" ON) option(ENABLE_CAP "Build with Posix capabilities support" ON) option(ENABLE_CARES "Build with c-ares support" ON) -option(ENABLE_NETLINK "Build with libnl support" ON) +if(CMAKE_SYSTEM_NAME STREQUAL "Linux") + option(ENABLE_NETLINK "Build with libnl support" ON) +endif() # todo Mostly hardcoded option(ENABLE_KERBEROS "Build with Kerberos support" ON) option(ENABLE_SBC "Build with SBC Codec support in RTP Player" ON) -- cgit v1.2.1