From b508028b141a951aa9c41d0cddb815ed4ff950ed Mon Sep 17 00:00:00 2001 From: paperchalice Date: Thu, 30 Jan 2025 14:35:05 +0800 Subject: [PATCH] Quote header list when finding bcrypt Found try compile source is incorrect, add quote to generate correct source file. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 468652177..6245f651f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)