Skip to content

Commit

Permalink
[unity]修复wolfssl在ios、osx、ohos的报错
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Sep 9, 2024
1 parent d0b082f commit a057c37
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions unity/native_src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,20 @@ if ( WITH_WEBSOCKET EQUAL 2 )
set_property(TARGET wolfssl PROPERTY
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif ()

if ( APPLE )
if ( IOS )
set(WOLFSSL_SYS_CA_CERTS OFF)
else ()
if ( NOT DEFINED FOR_SILICON )
set(CMAKE_SYSTEM_PROCESSOR x86_64)
else ()
set(CMAKE_SYSTEM_PROCESSOR arm64)
endif ()
endif ()
elseif ( OHOS )
set(WARNING_C_FLAGS "-Wall -Wextra -Wno-unused")
endif ()
endif ()

option ( USING_V8 "using v8" ON )
Expand Down

0 comments on commit a057c37

Please sign in to comment.