Skip to content

Commit d8f0da8

Browse files
lbartolettinyalldawson
authored andcommittedSep 7, 2018
Fix OpenCL cmake for *BSD
1 parent 670760b commit d8f0da8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ MESSAGE(STATUS "QGIS version: ${COMPLETE_VERSION} ${RELEASE_NAME} (${QGIS_VERSIO
2929

3030
#############################################################
3131
# Configure OpenCL if available
32-
IF (APPLE)
32+
SET(HAVE_OPENCL FALSE)
33+
IF (APPLE OR ${CMAKE_HOST_SYSTEM_NAME} MATCHES "BSD$")
3334
OPTION(USE_OPENCL "Use OpenCL" OFF)
34-
ELSE (APPLE)
35+
ELSE (APPLE OR ${CMAKE_HOST_SYSTEM_NAME} MATCHES "BSD$")
3536
OPTION(USE_OPENCL "Use OpenCL" ON)
36-
ENDIF (APPLE)
37+
ENDIF (APPLE OR ${CMAKE_HOST_SYSTEM_NAME} MATCHES "BSD$")
3738
IF (USE_OPENCL)
3839
FIND_PACKAGE(OpenCL)
3940
IF(${OpenCL_FOUND})

0 commit comments

Comments
 (0)
Please sign in to comment.