Don't force compile everything as Objective-C++ on macOS

This commit is contained in:
Michael Maltese
2016-09-18 17:22:39 -07:00
parent 4c004b6dc9
commit cd19c9fa22
13 changed files with 89 additions and 133 deletions

View File

@ -82,7 +82,7 @@ endif()
if(WIN32)
set(SRCS ${SRCS} GL/GLInterface/WGL.cpp)
elseif(APPLE)
set(SRCS ${SRCS} GL/GLInterface/AGL.cpp)
set(SRCS ${SRCS} GL/GLInterface/AGL.mm)
elseif(USE_X11)
if (NOT USE_EGL)
set(SRCS ${SRCS} GL/GLInterface/GLX.cpp)

View File

@ -4,8 +4,11 @@
#pragma once
#ifdef __APPLE__
#if defined(__APPLE__) && defined(__OBJC__)
#import <AppKit/AppKit.h>
#else
struct NSOpenGLContext;
struct NSView;
#endif
#include "Common/GL/GLInterfaceBase.h"