build: link wolfssl statically
This commit is contained in:
+5
-2
@@ -35,11 +35,14 @@ set(SEALLIB_EVENTS ON CACHE BOOL "" FORCE)
|
|||||||
FetchContent_GetProperties(seallib)
|
FetchContent_GetProperties(seallib)
|
||||||
FetchContent_MakeAvailable(seallib)
|
FetchContent_MakeAvailable(seallib)
|
||||||
|
|
||||||
|
|
||||||
|
# wolfssl config
|
||||||
|
set(WOLFSSL_ALPN ON CACHE BOOL "" FORCE)
|
||||||
|
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
|
||||||
|
|
||||||
FetchContent_GetProperties(wolfssl)
|
FetchContent_GetProperties(wolfssl)
|
||||||
FetchContent_MakeAvailable(wolfssl)
|
FetchContent_MakeAvailable(wolfssl)
|
||||||
|
|
||||||
set(WOLFSSL_ALPN ON CACHE BOOL "" FORCE)
|
|
||||||
|
|
||||||
target_compile_definitions(wolfssl PUBLIC
|
target_compile_definitions(wolfssl PUBLIC
|
||||||
-DWOLFSSL_ALT_NAMES
|
-DWOLFSSL_ALT_NAMES
|
||||||
-DWOLFSSL_ALPN
|
-DWOLFSSL_ALPN
|
||||||
|
|||||||
Reference in New Issue
Block a user