Skip to content

Commit

Permalink
Fix windows build when only building the static library. In which cas…
Browse files Browse the repository at this point in the history
…e ${TARGET_srt}_shared is not a valid target and CMake generates an error.
  • Loading branch information
jlsantiago0 committed Apr 11, 2018
1 parent 5276995 commit 7bf7021
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,11 @@ if (ENABLE_SHARED)
target_compile_definitions(haicrypt_virtual PRIVATE -DHAICRYPT_EXPORTS)
endif()

if (srt_libspec_shared)
if (MICROSOFT)
target_link_libraries(${TARGET_srt}_shared PUBLIC Ws2_32.lib)
endif()
endif()

# Cygwin installs the *.dll libraries in bin directory and uses PATH.

Expand Down

0 comments on commit 7bf7021

Please sign in to comment.