{"author":"Viktor Szakats","author_email":"commit@vsz.me","author_time":1745310976,"commit_time":1745341623,"committer":"Viktor Szakats","committer_email":"commit@vsz.me","hash":"e5a965b676fe6ad27d7e1f9aa31b4869c99f2bac","message":"cmake: avoid 'target is imported but not globally visible' when consuming libcurl with old cmake\n\nFixes:\n```\nCMake Error at bld-curl/_pkg/lib/cmake/CURL/CURLConfig.cmake:62 (add_library):\n  add_library cannot create ALIAS target \"CURL::libcurl\" because target\n  \"CURL::libcurl_shared\" is imported but not globally visible.\nCall Stack (most recent call first):\n  CMakeLists.txt:39 (find_package)\n```\n\ntests/cmake reproducer (requires #16973):\n```shell\nexport CMAKE_CONSUMER=/path/to/CMake-3.12.0/bin/cmake\n./test.sh find_package\n```\n\nI don't understand what this error says, why it happens in certain CMake\nversions, and why a workaround is necessary for what seems like\na standard export/consume configuration. This patch is based on internet\nsuggestions and other projects ending up with this workaround.\n\nCherry-picked from #16973\nCloses #17140\n","parents":["d60c9aec420704ce31dbb9905d3188eab9bd2cbe"],"tree_hash":"35c1a5c32f06088ac8d84a4b8be67db7c30fed49"}