mirror of
https://github.com/libtom/libtomcrypt
synced 2026-08-25 20:26:07 -04:00
Check BCryptGenRandom correctly
This commit is contained in:
parent
427e0551c0
commit
ae7f26ed44
1 changed files with 2 additions and 1 deletions
|
|
@ -121,7 +121,8 @@ endif()
|
|||
|
||||
if(MSVC)
|
||||
cmake_push_check_state()
|
||||
check_symbol_exists(BCryptGenRandom bcrypt.h BCRYPT_AVAILABLE)
|
||||
set(CMAKE_REQUIRED_LIBRARIES bcrypt)
|
||||
check_symbol_exists(BCryptGenRandom Windows.h;bcrypt.h BCRYPT_AVAILABLE)
|
||||
cmake_pop_check_state()
|
||||
if(BCRYPT_AVAILABLE)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Bcrypt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue