diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2013-08-19 22:36:33 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2013-08-19 23:46:53 -0700 |
commit | df776dc9673ad4f95a40e411623947a911e56751 (patch) | |
tree | 9bacba5b2da6290a435de5d6e6af1515d97f6120 | |
parent | ef15984dca3f67d78eb6026970537442d7450830 (diff) |
cmake: Check that gbm is not enabled on Mac
Checks for GLX, EGL, and Wayland were present. GBM was the only check
missing.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r-- | cmake/Modules/WaffleValidateOptions.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/Modules/WaffleValidateOptions.cmake b/cmake/Modules/WaffleValidateOptions.cmake index 798d9c9..8bc7d16 100644 --- a/cmake/Modules/WaffleValidateOptions.cmake +++ b/cmake/Modules/WaffleValidateOptions.cmake @@ -53,6 +53,9 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") "waffle_has_x11_egl, waffle_has_gbm.") endif() elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") + if(waffle_has_gbm) + message(FATAL_ERROR "Option is not supported on Darwin: waffle_has_gbm.") + endif() if(waffle_has_glx) message(FATAL_ERROR "Option is not supported on Darwin: waffle_has_glx.") endif() |