Skip to content

Commit

Permalink
[CMake] Require opengl when building with cocoa
Browse files Browse the repository at this point in the history
Closes root-project#7160, as discussed in the issue thread.
  • Loading branch information
guitargeek committed Apr 9, 2024
1 parent 74c9a26 commit 5d27158
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/modules/RootBuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ elseif(APPLE)
set(x11_defvalue OFF)
endif()

if(cocoa AND opengl)
message(FATAL_ERROR "The 'cocoa' and 'opengl' options are mutually exclusive")
endif()

# Pyroot requires Python development package; force to OFF if it was not found
if(NOT Python3_Development_FOUND)
set(pyroot_defvalue OFF)
Expand Down

0 comments on commit 5d27158

Please sign in to comment.