Skip to content

Commit

Permalink
wzmaplib: Adjust CMake find_package(libzip) params
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Mar 26, 2024
1 parent 171877b commit f57287f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/wzmaplib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ target_link_libraries(wzmaplib PRIVATE quickjs)
##################################
# ZipIOProvider (requires libzip)

find_package(libzip QUIET)
set(LIBZIP_FIND_ADDITIONAL_PARAMS)
if (APPLE OR WIN32)
list(APPEND LIBZIP_FIND_ADDITIONAL_PARAMS NO_SYSTEM_ENVIRONMENT_PATH)
endif()
find_package(libzip QUIET ${LIBZIP_FIND_ADDITIONAL_PARAMS})
if (libzip_FOUND)
# Test linking libzip
include(CheckCXXSourceCompiles)
Expand Down

0 comments on commit f57287f

Please sign in to comment.