aboutsummaryrefslogtreecommitdiff
path: root/find-modules/FindEGL.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'find-modules/FindEGL.cmake')
-rw-r--r--find-modules/FindEGL.cmake9
1 files changed, 3 insertions, 6 deletions
diff --git a/find-modules/FindEGL.cmake b/find-modules/FindEGL.cmake
index 72474371..b8787d8b 100644
--- a/find-modules/FindEGL.cmake
+++ b/find-modules/FindEGL.cmake
@@ -60,12 +60,9 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#=============================================================================
-if(CMAKE_VERSION VERSION_LESS 2.8.12)
- message(FATAL_ERROR "CMake 2.8.12 is required by FindEGL.cmake")
-endif()
-if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.12)
- message(AUTHOR_WARNING "Your project should require at least CMake 2.8.12 to use FindEGL.cmake")
-endif()
+include(${CMAKE_CURRENT_LIST_DIR}/ECMFindModuleHelpersStub.cmake)
+
+ecm_find_package_version_check(EGL)
# Use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls