Skip to content

Commit

Permalink
Fix macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
wtsnz committed Feb 15, 2021
1 parent 4bc7dc9 commit c9c49ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deps/libimobiledevice/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ target_link_libraries(libimobiledevice
OpenSSL::Crypto
)


check_function_exists(stpcpy HAVE_STPCPY)
if(${HAVE_STPCPY})
add_compile_definitions(libimobiledevice HAVE_STPCPY)
endif()

check_function_exists(stpncpy HAVE_STPNCPY)
if(${HAVE_STPNCPY})
add_compile_definitions(libimobiledevice HAVE_STPNCPY)
Expand Down

0 comments on commit c9c49ca

Please sign in to comment.