diff --git a/CMakeLists.txt b/CMakeLists.txt index 913cea4..987a681 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,7 +67,7 @@ if(APPLE) FetchContent_MakeAvailable(nlohmann_json) else() # CentOS 使用系统安装的包 - find_package(nlohmann_json 3.11.3 REQUIRED) + find_package(nlohmann_json REQUIRED) # 验证系统包路径 if(NOT TARGET nlohmann_json::nlohmann_json)