mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-26 02:00:50 +08:00
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:
parent
3aa1192a00
commit
2067f66d66