forked from pyrite-dev/milsko
disable cocoa opengl on cmake
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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue