conan
conan copied to clipboard
Add property to change the CMake variable names generated with CMakeDeps
Changelog: Feature: Add new variable to CMakeDeps generator to allow changing the name used in CMake variables Docs: https://github.com/conan-io/docs/pull/XXXX
Created new property for CMakeDeps generator: cmake_legacy_variable_prefix that can be set in package_info() of the conanfile.
It allows changing the prefix used when creating CMake variables instead of the package name that was currently being used.
Closes: https://github.com/conan-io/conan/issues/14788
- [x] Refer to the issue that supports this Pull Request.
- [x] If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
- [x] I've read the Contributing guide.
- [x] I've followed the PEP8 style guides for Python code.
- [x] I've opened another PR in the Conan docs repo to the
developbranch, documenting this one.