diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3cc1548..a79cc32 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -173,11 +173,11 @@ if (HAS_OPENSSL) target_link_libraries(onvifcommon PUBLIC OpenSSL::SSL PUBLIC OpenSSL::Crypto) endif () if (WIN32) - target_link_libraries(onvifcommon ws2_32) + target_link_libraries(onvifcommon PUBLIC ws2_32) if (NOT BUILD_SHARED_LIBS) - target_link_libraries(onvifcommon version Winmm Netapi32 Userenv) + target_link_libraries(onvifcommon PUBLIC version PUBLIC Winmm PUBLIC Netapi32 PUBLIC Userenv) if (HAS_OPENSSL) - target_link_libraries(onvifcommon crypt32) + target_link_libraries(onvifcommon PUBLIC crypt32) endif () endif () endif ()