cmake export configuration: allow repeating find_package(jsoncpp) calls (#1491)

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.

Co-authored-by: xiazuoling.xzl <xiazuoling.xzl@alibaba-inc.com>
Co-authored-by: Jordan Bayles <bayles.jordan@gmail.com>
This commit is contained in:
zeroxia 2024-09-10 11:14:17 +08:00 committed by GitHub
parent 3aa1192a00
commit 2067f66d66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available