diff --git a/via/CMakeLists.txt b/via/CMakeLists.txt index d14f913e37..7be39dc664 100644 --- a/via/CMakeLists.txt +++ b/via/CMakeLists.txt @@ -69,6 +69,9 @@ endif() find_package(jsoncpp CONFIG) if (TARGET jsoncpp_static) target_link_libraries(vkvia PRIVATE jsoncpp_static) + +elseif (TARGET JsonCpp::JsonCpp) + target_link_libraries(vkvia PRIVATE JsonCpp::JsonCpp) # Support using jsoncpp.pc but only for UNIX platforms. # And only if UPDATE_DEPS is disabled.