File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2419,12 +2419,15 @@ target_include_directories(wolfssl
24192419
24202420target_link_libraries (wolfssl PUBLIC ${WOLFSSL_LINK_LIBS} )
24212421
2422- if (WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "^MSYS" OR ${CMAKE_SYSTEM_NAME} MATCHES "^MINGW" )
2422+ if (CMAKE_C_COMPILER_ID STREQUAL "OpenWatcom" )
2423+ if (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
2424+ target_link_libraries (wolfssl PUBLIC ws2_32 crypt32 )
2425+ endif ()
2426+ elseif (WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "^MSYS" OR ${CMAKE_SYSTEM_NAME} MATCHES "^MINGW" )
24232427 # For Windows link required libraries
24242428 message ("Building on Windows/MSYS/MINGW" )
24252429 target_link_libraries (wolfssl PUBLIC
24262430 ws2_32 crypt32 advapi32 )
2427- elseif (CMAKE_C_COMPILER_ID STREQUAL "OpenWatcom" )
24282431elseif (APPLE )
24292432 message ("Building on Apple" )
24302433 if (WOLFSSL_SYS_CA_CERTS)
You can’t perform that action at this time.
0 commit comments