Skip to content

Commit

Permalink
Quote header list when finding bcrypt
Browse files Browse the repository at this point in the history
Found try compile source is incorrect, add quote to generate correct  source file.
  • Loading branch information
paperchalice authored and sjaeckel committed Mar 1, 2025
1 parent 5c73ba8 commit b508028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ endif()
if(MSVC)
cmake_push_check_state()
set(CMAKE_REQUIRED_LIBRARIES bcrypt)
check_symbol_exists(BCryptGenRandom Windows.h;bcrypt.h BCRYPT_AVAILABLE)
check_symbol_exists(BCryptGenRandom "Windows.h;bcrypt.h" BCRYPT_AVAILABLE)
cmake_pop_check_state()
if(BCRYPT_AVAILABLE)
target_link_libraries(${PROJECT_NAME} PRIVATE Bcrypt)
Expand Down

0 comments on commit b508028

Please sign in to comment.