Skip to content

Commit

Permalink
Merge pull request #25170 from fuzzard/depends_cmake
Browse files Browse the repository at this point in the history
[tools/depends][native] Bump cmake 3.29.3
  • Loading branch information
fuzzard committed May 12, 2024
2 parents f24e69c + 451a7ee commit c6ce74b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 35 deletions.
13 changes: 0 additions & 13 deletions cmake/modules/FindOpenGLES.cmake
Expand Up @@ -29,19 +29,6 @@ if(NOT TARGET OpenGL::GLES)
REQUIRED_VARS OPENGLES_gl_LIBRARY OPENGLES_INCLUDE_DIR)

if(OPENGLES_FOUND)
if(CORE_SYSTEM_NAME STREQUAL darwin_embedded)
# 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(OPENGLES_gl_LIBRARY MATCHES "/([^/]+)\\.framework$")
set(_gles_fw "${OPENGLES_gl_LIBRARY}/${CMAKE_MATCH_1}")
if(EXISTS "${_gles_fw}.tbd")
string(APPEND _gles_fw ".tbd")
endif()
set(OPENGLES_gl_LIBRARY ${_gles_fw})
endif()
endif()

if(${OPENGLES_gl_LIBRARY} MATCHES ".+\.so$")
add_library(OpenGL::GLES SHARED IMPORTED)
else()
Expand Down
13 changes: 0 additions & 13 deletions cmake/modules/FindOpenGl.cmake
Expand Up @@ -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}"
Expand Down
4 changes: 4 additions & 0 deletions tools/depends/native/cmake/CMAKE-VERSION
@@ -0,0 +1,4 @@
APPNAME=cmake
VERSION=3.29.3
ARCHIVE=$(APPNAME)-$(VERSION).tar.gz
SHA512=930060cf484a769992ebc798d5e81984560b2cd7e163db7053181ad842656ccd0085e7e077c9c620e719d212f78283ca0db19bec5491a355d38078bbe0bac254
11 changes: 2 additions & 9 deletions tools/depends/native/cmake/Makefile
@@ -1,13 +1,6 @@
include ../../Makefile.include
include ../../Makefile.include CMAKE-VERSION ../../download-files.include
PLATFORM=$(NATIVEPLATFORM)
DEPS = ../../Makefile.include Makefile ../../download-files.include

APPNAME=cmake
VERSION=3.26.4
SOURCE=$(APPNAME)-$(VERSION)
ARCHIVE=$(SOURCE).tar.gz
SHA512=fe817c8d5e247db3f0a9a58ee37c466a47220100d9e90711cd5d06c223cef87e41d1a756e75d1537e5f8cd010dcb8971cbeab4684b1ac12bcecf84bf7b720167
include ../../download-files.include
DEPS = ../../Makefile.include Makefile CMAKE-VERSION ../../download-files.include

# configuration settings

Expand Down

0 comments on commit c6ce74b

Please sign in to comment.