Skip to content

Commit

Permalink
Workaround: Make sure MacOS ignores unused CLI arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossanlop committed May 22, 2024
1 parent 5044b66 commit 619b721
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/native/external/zlib-ng.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ add_compile_options($<$<COMPILE_LANG_AND_ID:C,MSVC>:/wd4244>) # 'function': conv
set(SKIP_INSTALL_ALL ON)
FetchContent_MakeAvailable(fetchzlibng)
set(SKIP_INSTALL_ALL OFF)

target_compile_options(zlibstatic PUBLIC $<$<COMPILE_LANG_AND_ID:C,Clang,AppleClang,GNU>:-Wno-error=unused-command-line-argument>) # Make sure MacOS respects ignoring unused CLI arguments

0 comments on commit 619b721

Please sign in to comment.