Skip to content

Commit b5ba7a6

Browse files
committed
correct Open Watcom linker extra libraries
1 parent 47d1304 commit b5ba7a6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,12 +2419,15 @@ target_include_directories(wolfssl
24192419

24202420
target_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")
24282431
elseif(APPLE)
24292432
message("Building on Apple")
24302433
if(WOLFSSL_SYS_CA_CERTS)

0 commit comments

Comments
 (0)