Skip to content

Commit

Permalink
Fail if trying to build headless on MacOS.
Browse files Browse the repository at this point in the history
AFAICT this is doomed to fail anyways, so failing early with an
informative error message is an improvement.

It should be possible to get it working though.
  • Loading branch information
garymm committed Nov 29, 2023
1 parent f6b434b commit a27c053
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ set(RUN_IN_PLACE ${DEFAULT_RUN_IN_PLACE} CACHE BOOL

set(BUILD_CLIENT TRUE CACHE BOOL "Build client")
set(BUILD_HEADLESS TRUE CACHE BOOL "Build in headless mode")

if(APPLE AND BUILD_HEADLESS)
message(FATAL_ERROR "Headless mode is not supported on MacOS yet. It should be possible, PRs welcome.")
endif()


set(BUILD_SERVER FALSE CACHE BOOL "Build server")
set(BUILD_UNITTESTS TRUE CACHE BOOL "Build unittests")
set(BUILD_BENCHMARKS FALSE CACHE BOOL "Build benchmarks")
Expand Down

0 comments on commit a27c053

Please sign in to comment.