mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
correct Open Watcom linker extra libraries
This commit is contained in:
@ -2419,12 +2419,15 @@ target_include_directories(wolfssl
|
|||||||
|
|
||||||
target_link_libraries(wolfssl PUBLIC ${WOLFSSL_LINK_LIBS})
|
target_link_libraries(wolfssl PUBLIC ${WOLFSSL_LINK_LIBS})
|
||||||
|
|
||||||
if (WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "^MSYS" OR ${CMAKE_SYSTEM_NAME} MATCHES "^MINGW")
|
if(CMAKE_C_COMPILER_ID STREQUAL "OpenWatcom")
|
||||||
|
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
|
target_link_libraries(wolfssl PUBLIC ws2_32 crypt32)
|
||||||
|
endif()
|
||||||
|
elseif (WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "^MSYS" OR ${CMAKE_SYSTEM_NAME} MATCHES "^MINGW")
|
||||||
# For Windows link required libraries
|
# For Windows link required libraries
|
||||||
message("Building on Windows/MSYS/MINGW")
|
message("Building on Windows/MSYS/MINGW")
|
||||||
target_link_libraries(wolfssl PUBLIC
|
target_link_libraries(wolfssl PUBLIC
|
||||||
ws2_32 crypt32 advapi32)
|
ws2_32 crypt32 advapi32)
|
||||||
elseif(CMAKE_C_COMPILER_ID STREQUAL "OpenWatcom")
|
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
message("Building on Apple")
|
message("Building on Apple")
|
||||||
if(WOLFSSL_SYS_CA_CERTS)
|
if(WOLFSSL_SYS_CA_CERTS)
|
||||||
|
Reference in New Issue
Block a user