You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMakeDeps is creating some variables in module mode using the name of the package. Instead of that, using the file name is probably more expected. Now, for example, for libcurl, it would generate libcurl_FOUND and libcurl_VERSION. Probably CURL_FOUND and CURL_VERSION is a bit more expected (but not perfect). As commented in the linked discussion, it's impossible for Conan to address all the cases for the declared variables in the official CMake modules, but at least we can try to provide those.
What about <name>_LIBRARIES and <name>_INCLUDE_DIRS? They were available in cmake_find_package but I don't see these variables in Find files generated by CMakeDeps when cmake_find_mode is both.
It's important for proper emulation of official Find files.
CMakeDeps is creating some variables in module mode using the name of the package. Instead of that, using the file name is probably more expected. Now, for example, for libcurl, it would generate
libcurl_FOUND
andlibcurl_VERSION
. ProbablyCURL_FOUND
andCURL_VERSION
is a bit more expected (but not perfect). As commented in the linked discussion, it's impossible for Conan to address all the cases for the declared variables in the official CMake modules, but at least we can try to provide those.Related to: conan-io/conan-center-index#8294 (comment)
and: conan-io/conan-center-index#8425 (comment)
The text was updated successfully, but these errors were encountered: