diff --git a/CMakeLists.txt b/CMakeLists.txt index 27a30ca84..134671b4e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,7 @@ # along with this program. If not, see . # # - + project(stratagus) cmake_minimum_required(VERSION 2.6) set(STRATAGUS_VERSION 2.2.5.5) @@ -565,6 +565,7 @@ endif() if(APPLE) add_definitions(-DUSE_MAC) + add_definitions(-D__unix) endif() if(BSD) diff --git a/cmake/modules/FindOpenGLES.cmake b/cmake/modules/FindOpenGLES.cmake index 2c2fc44b6..38ea148a9 100644 --- a/cmake/modules/FindOpenGLES.cmake +++ b/cmake/modules/FindOpenGLES.cmake @@ -41,8 +41,7 @@ else() elseif(APPLE) - create_search_paths(/Developer/Platforms) - findpkg_framework(OpenGLES) + set(OPENGLES_GL_LIBRARY "-framework OpenGLES") # TODO: EGL