cmake export configuration: allow repeating find_package(jsoncpp) calls by zeroxia · Pull Request #1491 · open-source-parsers/jsoncpp (original) (raw)
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.