conan icon indicating copy to clipboard operation
conan copied to clipboard

Add property to change the CMake variable names generated with CMakeDeps

Open juansblanco opened this issue 1 year ago • 0 comments

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 develop branch, documenting this one.

juansblanco avatar May 09 '24 12:05 juansblanco