Skip to content

Commit

Permalink
solve ridiculous macOS native zlib issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jcm93 committed Dec 2, 2024
1 parent 39fa2e9 commit c81f2a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ruby/cmake/os-macos.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
find_package(SDL)
find_package(librashader)

if(XCODE AND WITH_SYSTEM_ZLIB)
set_target_properties(ruby PROPERTIES OUTPUT_NAME "ruby-but-not-the-scripting-language")
endif()

target_sources(
ruby
PRIVATE video/cgl.cpp video/metal/metal.cpp video/metal/metal.hpp video/metal/Shaders.metal video/metal/ShaderTypes.h
Expand Down
3 changes: 3 additions & 0 deletions thirdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ add_subdirectory(libchdr/deps/lzma-24.05 EXCLUDE_FROM_ALL)
list(APPEND CHDR_LIBS lzma)
list(APPEND CHDR_INCLUDES lzma)

if(OS_MACOS)
option(WITH_SYSTEM_ZLIB "Use system zlib" ON)
endif()
# zlib
if (WITH_SYSTEM_ZLIB)
find_package(ZLIB REQUIRED)
Expand Down

0 comments on commit c81f2a2

Please sign in to comment.