cmake_paths

This is the reference page for cmake_paths generator. Go to Integrations/CMake if you want to learn how to integrate your project or recipes with CMake.

It generates a file named conan_paths.cmake and declares two variables:

Variables in conan_paths.cmake

NAME

VALUE

CMAKE_MODULE_PATH

Containing all requires root folders, any declared self.cpp_info.builddirs and the current directory of this file

CMAKE_PREFIX_PATH

Containing all requires root folders, any declared self.cpp_info.builddirs and the current directory of this file

CONAN_XXX_ROOT

For each dep, the root folder, being XXX the dep name uppercase. Useful when a .cmake is patched with cmake.patch_config_paths()