We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 427e055 + ae7f26e commit 54f0456Copy full SHA for 54f0456
CMakeLists.txt
@@ -121,7 +121,8 @@ endif()
121
122
if(MSVC)
123
cmake_push_check_state()
124
- check_symbol_exists(BCryptGenRandom bcrypt.h BCRYPT_AVAILABLE)
+ set(CMAKE_REQUIRED_LIBRARIES bcrypt)
125
+ check_symbol_exists(BCryptGenRandom Windows.h;bcrypt.h BCRYPT_AVAILABLE)
126
cmake_pop_check_state()
127
if(BCRYPT_AVAILABLE)
128
target_link_libraries(${PROJECT_NAME} PRIVATE Bcrypt)
0 commit comments