Skip to content

Commit

Permalink
fixing win32 build
Browse files Browse the repository at this point in the history
  • Loading branch information
gangatp committed Dec 7, 2023
1 parent 645a5dc commit 1915426
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ if (USE_INCLUDED_LIBZIP)
endif()
if(WIN32)
target_link_libraries(${PROJECT_NAME} PRIVATE advapi32)
# disable win32 build failing 'initializing': conversion from 'zip_uint64_t' to 'size_t', possible loss of data
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
target_compile_options(${PROJECT_NAME} PRIVATE /wd4244)
endif()
endif()

# create libzip autogenerated platform specific headers
Expand Down

0 comments on commit 1915426

Please sign in to comment.