summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChad Versace <chad.versace@intel.com>2011-02-26 01:19:26 -0800
committerChad Versace <chad.versace@intel.com>2011-02-26 01:19:26 -0800
commitee61936b58414df50b32455aaa5eca11399dba63 (patch)
tree423ba57b0189d8163ac18164860cf002a67dcfd9 /src
parentbeec033ef6a398fc32f46e907d34ce7c8b7b4d6f (diff)
cmake: Do not add target glut_egl if OPENGL_egl_LIBRARY is not found
Signed-off-by: Chad Versace <chad.versace@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4fddd44c4..2a01ca056 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1 +1,3 @@
-add_subdirectory(glut_egl)
+if(OPENGL_egl_LIBRARY)
+ add_subdirectory(glut_egl)
+endif(OPENGL_egl_LIBRARY)