From 09ef6d7c5e33beb16f81871b3a776d479355b4ac Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 5 Jun 2014 14:09:51 +0200 Subject: Only enable libevdev on Linux. Default to it enabled. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e268a65..44e853af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,8 +87,8 @@ if(WIN32 AND DEFINED MSVC_VERSION AND NOT ${MSVC_VERSION} LESS 1700) SET (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /SAFESEH:NO") endif() -if(UNIX) - SET(SDK_LIBEVDEV "" CACHE PATH "libevdev SDK path") +if(CMAKE_SYSTEM_NAME STREQUAL Linux) + SET(SDK_LIBEVDEV "/usr" CACHE PATH "libevdev install prefix") endif() if(WIN32) -- cgit v1.2.3