Skip to content

Commit a82de83

Browse files
authored
disable OpenCL by default on mac (#7621)
dirty fix before headers detection is properly done
1 parent e82cc94 commit a82de83

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CMakeLists.txt

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ MESSAGE(STATUS "QGIS version: ${COMPLETE_VERSION} ${RELEASE_NAME} (${QGIS_VERSIO
2929

3030
#############################################################
3131
# Configure OpenCL if available
32-
33-
OPTION(USE_OPENCL "Use OpenCL" ON)
32+
IF (APPLE)
33+
OPTION(USE_OPENCL "Use OpenCL" OFF)
34+
ELSE (APPLE)
35+
OPTION(USE_OPENCL "Use OpenCL" ON)
36+
ENDIF (APPLE)
3437
IF (USE_OPENCL)
3538
FIND_PACKAGE(OpenCL)
3639
IF(${OpenCL_FOUND})

0 commit comments

Comments
 (0)