mirror of
https://github.com/pantor/inja.git
synced 2026-04-30 11:09:31 +00:00
Fixed exports for submodule builds with external nlohmann json parser. (#237)
This commit is contained in:
@@ -59,6 +59,8 @@ else()
|
||||
# If target already exists, e.g. by git submodules
|
||||
if(TARGET nlohmann_json)
|
||||
set(INJA_SELECTED_JSON_LIBRARY "nlohmann_json::nlohmann_json")
|
||||
|
||||
install(TARGETS nlohmann_json EXPORT injaTargets)
|
||||
else()
|
||||
find_package(nlohmann_json REQUIRED)
|
||||
set(INJA_SELECTED_JSON_LIBRARY "nlohmann_json::nlohmann_json")
|
||||
|
||||
Reference in New Issue
Block a user