From 54f2b34623631c5da513d2b7a486c2b6b17b3288 Mon Sep 17 00:00:00 2001 From: o9000 Date: Thu, 31 Dec 2015 16:41:58 +0100 Subject: [PATCH] Fix battery compilation for DragonFly BSD --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index acc18be..752b13a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,6 +93,8 @@ if( ENABLE_BATTERY ) if(CMAKE_SYSTEM_NAME STREQUAL "Linux") set( SOURCES ${SOURCES} src/battery/linux.c) + elseif(CMAKE_SYSTEM_NAME STREQUAL "DragonFly") + set( SOURCES ${SOURCES} src/battery/freebsd.c) elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") set( SOURCES ${SOURCES} src/battery/freebsd.c) elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")