Explorar o código

CMakeLists: work with Debian/kFreeBSD

ambrop7 %!s(int64=15) %!d(string=hai) anos
pai
achega
93729537ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -72,7 +72,7 @@ else ()
             message(FATAL_ERROR "epoll is required")
         endif ()
         add_definitions(-DBADVPN_USE_EPOLL)
-    elseif (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
+    elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
         add_definitions(-DBADVPN_FREEBSD)
 
         check_symbol_exists(kqueue "sys/types.h;sys/event.h;sys/time.h" HAVE_KQUEUE)