FindSDL_gles.cmake - Remove using CMakePushCheckState which is not in CMake 2.6

This commit is contained in:
Pali Rohár 2013-02-08 23:09:48 +01:00
parent 781af593cb
commit d6efb9f190

View file

@ -26,14 +26,11 @@ if(SDLGLES_TYPE)
else()
if (NOT SDLGLES_FOUND)
# Check for Native support
include(CMakePushCheckState)
include(CheckTypeSize)
cmake_push_check_state()
set(CMAKE_REQUIRED_INCLUDES SDL include/SDL)
set(CMAKE_EXTRA_INCLUDE_FILES SDL_video.h)
check_type_size(SDL_OPENGLES, SDLGLES_NATIVE)
cmake_pop_check_state()
if(HAVE_SDLGLES_NATIVE)
set(SDLGLES_FOUND true)