Fix add_library for nlohmann_json

This commit is contained in:
Eidolon 2024-04-25 19:57:40 -05:00
parent 858fa44bcf
commit 43eb8471e5

View file

@ -1,4 +1,4 @@
# Update from https://github.com/nlohmann/json/releases
add_library(nlohmann_json INTERFACE "include/nlohmann/json.hpp" "include/nlohmann/json_fwd.hpp")
add_library(nlohmann_json INTERFACE)
target_include_directories(nlohmann_json INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
add_library(nlohmann_json::nlohmann_json ALIAS nlohmann_json)