docs icon indicating copy to clipboard operation
docs copied to clipboard

CMakeToolchain: document that `variables` set variables with CACHE keyword

Open SpaceIm opened this issue 3 years ago • 0 comments

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.

SpaceIm avatar Aug 05 '22 22:08 SpaceIm