File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2409,17 +2409,20 @@ target_include_directories(wolfssl
24092409
24102410target_link_libraries (wolfssl PUBLIC ${WOLFSSL_LINK_LIBS} )
24112411
2412- if (WIN32 )
2413- # For Windows link ws2_32
2412+ if (WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "^MSYS" OR ${CMAKE_SYSTEM_NAME} MATCHES "^MINGW" )
2413+ # For Windows link required libraries
2414+ message ("Building on Windows/MSYS/MINGW" )
24142415 target_link_libraries (wolfssl PUBLIC
2415- $<$<PLATFORM_ID:Windows>: ws2_32 crypt32 advapi32> )
2416+ ws2_32 crypt32 advapi32)
24162417elseif (APPLE )
2418+ message ("Building on Apple" )
24172419 if (WOLFSSL_SYS_CA_CERTS)
24182420 target_link_libraries (wolfssl PUBLIC
24192421 ${CORE_FOUNDATION_FRAMEWORK}
24202422 ${SECURITY_FRAMEWORK} )
24212423 endif ()
24222424else ()
2425+ message ("Building on Linux (or other)" )
24232426 if (WOLFSSL_DH AND NOT WOLFSSL_DH_CONST)
24242427 # DH requires math (m) library
24252428 target_link_libraries (wolfssl
You can’t perform that action at this time.
0 commit comments