修改 CMakeLists.txt 文件,Centos使用系统安装的 nlohmann_json,不指定版本

This commit is contained in:
Tian jianyong 2025-02-06 16:54:31 +08:00
parent 90b372f659
commit 7509b4a44b

View File

@ -67,7 +67,7 @@ if(APPLE)
FetchContent_MakeAvailable(nlohmann_json) FetchContent_MakeAvailable(nlohmann_json)
else() else()
# CentOS 使 # CentOS 使
find_package(nlohmann_json 3.11.3 REQUIRED) find_package(nlohmann_json REQUIRED)
# #
if(NOT TARGET nlohmann_json::nlohmann_json) if(NOT TARGET nlohmann_json::nlohmann_json)