File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ if (WIN32)
8888 #
8989 # Check whether BCrypt can be used with this SDK version
9090 #
91- try_compile (BCRYPT_AVAILABLE "${CMAKE_CURRENT_BINARY_DIR} /tryCompile" SOURCES "${CMAKE_CURRENT_LIST_DIR} /cmake/tryCompileTestBCrypt.cpp" OUTPUT_VARIABLE BCRYPT_AVAILABILITY_TEST_MESSAGES)
91+ try_compile (BCRYPT_AVAILABLE "${CMAKE_CURRENT_BINARY_DIR} /tryCompile" SOURCES "${CMAKE_CURRENT_LIST_DIR} /cmake/tryCompileTestBCrypt.cpp" LINK_LIBRARIES bcrypt OUTPUT_VARIABLE BCRYPT_AVAILABILITY_TEST_MESSAGES)
9292 if (NOT BCRYPT_AVAILABLE)
9393 message (STATUS ${BCRYPT_AVAILABILITY_TEST_MESSAGES} )
9494 message (FATAL_ERROR "You're on Windows but BCrypt seems to be unavailable, you will need OpenSSL" )
Original file line number Diff line number Diff line change 11#include < Windows.h>
22#include < bcrypt.h>
33#include < cstdio>
4- #pragma comment(lib, "bcrypt.lib")
54
65int main (int , char **)
76{
You can’t perform that action at this time.
0 commit comments