修改 CMakeLists.txt 文件,Centos使用系统安装的 nlohmann_json,不指定版本
This commit is contained in:
parent
90b372f659
commit
7509b4a44b
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user