disable cocoa opengl on cmake
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
e40735b6e9
commit
2a333897b7
2 changed files with 2 additions and 4 deletions
|
|
@ -60,11 +60,8 @@ endif()
|
|||
|
||||
if(MW_TRY_OPENGL)
|
||||
find_package(OpenGL)
|
||||
if(OpenGL_FOUND)
|
||||
if(OpenGL_FOUND and NOT APPLE)
|
||||
set(MW_BUILD_OPENGL ON)
|
||||
if(APPLE)
|
||||
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/widget/opengl_cocoa.m")
|
||||
endif()
|
||||
message(STATUS "OpenGL widget has been enabled")
|
||||
else()
|
||||
message(WARNING "OpenGL widget has been disabled")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#include <Mw/Milsko.h>
|
||||
#import <AppKit/AppKit.h>
|
||||
|
||||
void MwLLNoCocoaErrorMessage(void) {
|
||||
NSAlert* alert = [[NSAlert alloc] init];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue