Skip to content
Permalink
Browse files

Fix OpenCL cmake for *BSD

  • Loading branch information
lbartoletti authored and nyalldawson committed Sep 7, 2018
1 parent 670760b commit d8f0da841291c9f824294d13fdebf26e25eaaa35
Showing with 4 additions and 3 deletions.
  1. +4 −3 CMakeLists.txt
@@ -29,11 +29,12 @@ MESSAGE(STATUS "QGIS version: ${COMPLETE_VERSION} ${RELEASE_NAME} (${QGIS_VERSIO

#############################################################
# Configure OpenCL if available
IF (APPLE)
SET(HAVE_OPENCL FALSE)
IF (APPLE OR ${CMAKE_HOST_SYSTEM_NAME} MATCHES "BSD$")
OPTION(USE_OPENCL "Use OpenCL" OFF)
ELSE (APPLE)
ELSE (APPLE OR ${CMAKE_HOST_SYSTEM_NAME} MATCHES "BSD$")
OPTION(USE_OPENCL "Use OpenCL" ON)
ENDIF (APPLE)
ENDIF (APPLE OR ${CMAKE_HOST_SYSTEM_NAME} MATCHES "BSD$")
IF (USE_OPENCL)
FIND_PACKAGE(OpenCL)
IF(${OpenCL_FOUND})

0 comments on commit d8f0da8

Please sign in to comment.
You can’t perform that action at this time.