After add_definitions(-DUSE_MAC) in CMakeLists.txt, add: add_definitions(-D__unix) FindOpenGLES.cmake uses some unknown CMake commands. Had to remove Units.for_each(InternalRemoveUnit); from ai_local.h
After add_definitions (-DUSE_ MAC) in CMakeLists.txt, add: add_definitions (-D__unix) each(InternalRe moveUnit) ; from ai_local.h
FindOpenGLES.cmake uses some unknown CMake commands.
Had to remove Units.for_