summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-04-08 10:26:48 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-04-08 12:37:34 -0700
commit79f51dc25319d0dd509a1e00647480da42a41f46 (patch)
tree7be32ad712c486547680d538a84db62a68783948
parentd5f388258f18bdd5f0e78661b0f53fc1e605d163 (diff)
cmake: Validate that at least one platform is chosen
Raise a fatal error if not. (Currently, there is only one platform: x11_egl). Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 70b37a4..84e46e5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,6 +57,14 @@ else(waffle_has_x11_egl)
set(waffle_has_x11 FALSE)
endif(waffle_has_x11_egl)
+# ----------------------------------------------
+# Validate waffle options
+# ----------------------------------------------
+
+if(NOT waffle_has_x11_egl)
+ message(FATAL_ERROR "Must enable at least one of: waffle_has_x11_egl. (currently there is only one choice)")
+endif(NOT waffle_has_x11_egl)
+
# ------------------------------------------------------------------------------
# Find Libraries