Skip to content

CMakeToolchain: document that variables set variables with CACHE keyword #2689

@SpaceIm

Description

@SpaceIm

Indeed, I've tested during migration of a recipe to conan v2 to pass a CMAKE_POLICY_DEFAULT_CMP<NNNN> with variables and it was just ignored by CMake. I had to use cache_variables.

So it would be nice to document this behavior, and maybe provide some examples of the kind of variables which should be passed with variables or cache_variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions