Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tereius committed Jan 1, 2025
1 parent eca80ce commit edb3a5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit edb3a5c

Please sign in to comment.