-
Notifications
You must be signed in to change notification settings - Fork 596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrectly detecting if bcrypt is available #287
Comments
LoL, for me it works as is, but when I change windows.h to bcrypt.h, it doesn't work. I suspect it has something to do with the version of the compiler or Windows platform SDK. I've got this, what do you have?
|
You are right - it does not help :( |
this works for me on my developer machine, as well as on windows-2022 and windows-2019 github actions runners: try_compile(bcryptAvailable "${CMAKE_CURRENT_BINARY_DIR}/tryCompile" SOURCES "${CMAKE_CURRENT_LIST_DIR}/tryCompileBcrypt.cpp" OUTPUT_VARIABLE bcryptMessages)
message(STATUS "bcryptAvailable: ${bcryptAvailable}") tryCompileBcrypt.cpp: #include <Windows.h>
#include <bcrypt.h>
#include <cstdio>
#pragma comment(lib, "bcrypt.lib")
int main(int, char **)
{
printf("%p\n", &BCryptEncrypt);
} please try this in your usecase (xbox?). ;) |
In
GameNetworkingSockets/CMakeLists.txt
Line 92 in 1e724c3
the test for bcrypt is incorrect.
Bcrypt functions are in bcrypt.h, not in windows.h.
(the actual include in the code is correct, just the test in cmake is wrong.)
I got that response here: https://stackoverflow.com/questions/76620272/missing-bcrypt-in-github-actions-windows-2019/76624127#76624127
The text was updated successfully, but these errors were encountered: