From 2c05426db1153e3b1646a162480fcabdee5ba3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20A=2E=20Col=C3=B3n=20V=C3=A9lez?= Date: Mon, 27 Jul 2015 19:19:47 -0400 Subject: [PATCH] Only check for EGL if using EGL_API. Missed this one. --- cmake/SearchForStuff.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/SearchForStuff.cmake b/cmake/SearchForStuff.cmake index ad8d2e56c0..62d41b01a7 100644 --- a/cmake/SearchForStuff.cmake +++ b/cmake/SearchForStuff.cmake @@ -77,7 +77,9 @@ include(CheckLib) if(Linux) check_lib(AIO aio libaio.h) endif() -check_lib(EGL EGL EGL/egl.h) +if(EGL_API) + check_lib(EGL EGL EGL/egl.h) +endif() check_lib(PORTAUDIO portaudio portaudio.h pa_linux_alsa.h) check_lib(SOUNDTOUCH SoundTouch soundtouch/SoundTouch.h) check_lib(PNGPP FALSE png++/png.hpp)