disable cocoa opengl on cmake
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoIxD 2026-04-26 22:20:50 -07:00
commit 2a333897b7
2 changed files with 2 additions and 4 deletions

View file

@ -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")

View file

@ -1,4 +1,5 @@
#include <Mw/Milsko.h>
#import <AppKit/AppKit.h>
void MwLLNoCocoaErrorMessage(void) {
NSAlert* alert = [[NSAlert alloc] init];