In jsoncpp-namspaced-targets.cmake, it creates JsonCpp::JsonCpp imported library without first checking whether it was already created by former call to find_package(JsonCpp).
As CMake allows repeated call to find_package(), the error of "another target with the same name already exists" should be fixed.
In
jsoncpp-namspaced-targets.cmake
, it createsJsonCpp::JsonCpp
imported library without first checking whether it was already created by former call tofind_package(JsonCpp)
.As CMake allows repeated call to
find_package()
, the error of "another target with the same name already exists" should be fixed.