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_<PKG-NAME>_ROOT

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

Where <PKG-NAME> is the placeholder for the name of the require in uppercase (ZLIB for zlib/1.2.8@lasote/stable) or the one declared in cpp_info.name or in cpp_info.names["cmake_paths"] if specified.