[ 97%] Linking CXX executable openttd Undefined symbols for architecture x86_64: "_CGLChoosePixelFormat", referenced from: +[OTTD_CGLLayer defaultPixelFormat] in cocoa_ogl.mm.o "_CGLCreateContext", referenced from: -[OTTD_CGLLayer copyCGLContextForPixelFormat:] in cocoa_ogl.mm.o VideoDriver_CocoaOpenGL::AllocateContext(bool) in cocoa_ogl.mm.o "_CGLDestroyPixelFormat", referenced from: VideoDriver_CocoaOpenGL::AllocateContext(bool) in cocoa_ogl.mm.o "_CGLReleaseContext", referenced from: VideoDriver_CocoaOpenGL::Stop() in cocoa_ogl.mm.o "_CGLSetCurrentContext", referenced from: -[OTTD_CGLLayer copyCGLContextForPixelFormat:] in cocoa_ogl.mm.o -[OTTD_CGLLayer drawInCGLContext:pixelFormat:forLayerTime:displayTime:] in cocoa_ogl.mm.o VideoDriver_CocoaOpenGL::AllocateContext(bool) in cocoa_ogl.mm.o VideoDriver_CocoaOpenGL::Stop() in cocoa_ogl.mm.o VideoDriver_CocoaOpenGL::ClearSystemSprites() in cocoa_ogl.mm.o VideoDriver_CocoaOpenGL::AllocateBackingStore(bool) in cocoa_ogl.mm.o VideoDriver_CocoaOpenGL::GetVideoPointer() in cocoa_ogl.mm.o ... ld: symbol(s) not found for architecture x86_64 c++: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [openttd] Error 1 make[1]: *** [CMakeFiles/openttd.dir/all] Error 2 make: *** [all] Error 2