diff --git a/ruby/cmake/os-macos.cmake b/ruby/cmake/os-macos.cmake index a040f7bf7..013d510bb 100644 --- a/ruby/cmake/os-macos.cmake +++ b/ruby/cmake/os-macos.cmake @@ -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 diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index dce98d99e..3ba6e763f 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -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)