[vcpkg] Link bcrypt via CMake on Windows (#3765)

This commit is contained in:
Konstantin Podsvirov 2018-06-26 21:40:44 +03:00 committed by Robert Schumacher
parent 1296b14f5a
commit a6986fdbea

View File

@ -48,6 +48,10 @@ elseif(CLANG)
target_link_libraries(vcpkg PRIVATE c++experimental)
endif()
if(WIN32)
target_link_libraries(vcpkg PRIVATE bcrypt)
endif()
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(vcpkg PRIVATE Threads::Threads)