From 33bf28cb0beeedec59284991b9ad07721097950d Mon Sep 17 00:00:00 2001 From: Aaron Hamilton Date: Thu, 22 Jan 2015 01:20:04 +0000 Subject: [PATCH] Guard find_package and include_directories for FUSE on OpenBSD, because it ships by default. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dfeb774..46f72b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,8 +28,10 @@ include_directories(${CURL_INCLUDE_DIRS}) set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/3rdparty/cmake) -find_package(FUSE 2.9 REQUIRED) -include_directories(${FUSE_INCLUDE_DIRS}) +if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") + find_package(FUSE 2.9 REQUIRED) + include_directories(${FUSE_INCLUDE_DIRS}) +endif() find_package(Jansson 2.5 REQUIRED) include_directories(${JANSSON_INCLUDE_DIRS})