diff options
Diffstat (limited to 'cmake/modules/FindOpenGl.cmake')
-rw-r--r-- | cmake/modules/FindOpenGl.cmake | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/cmake/modules/FindOpenGl.cmake b/cmake/modules/FindOpenGl.cmake index cabee46db3..1af7469e18 100644 --- a/cmake/modules/FindOpenGl.cmake +++ b/cmake/modules/FindOpenGl.cmake @@ -26,19 +26,6 @@ if(NOT TARGET OpenGL::GL) REQUIRED_VARS OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR) if(OPENGL_FOUND) - if(CORE_SYSTEM_NAME STREQUAL osx) - # Cmake only added support for Frameworks as the IMPORTED_LOCATION as of 3.28 - # https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8586 - # Until we move to cmake 3.28 as minimum, explicitly set to binary inside framework - if(OPENGL_gl_LIBRARY MATCHES "/([^/]+)\\.framework$") - set(_gl_fw "${OPENGL_gl_LIBRARY}/${CMAKE_MATCH_1}") - if(EXISTS "${_gl_fw}.tbd") - string(APPEND _gl_fw ".tbd") - endif() - set(OPENGL_gl_LIBRARY ${_gl_fw}) - endif() - endif() - add_library(OpenGL::GL UNKNOWN IMPORTED) set_target_properties(OpenGL::GL PROPERTIES IMPORTED_LOCATION "${OPENGL_gl_LIBRARY}" |