This is the reference page for
cmake_pathsgenerator. 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¶
|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()|
<PKG-NAME> is the placeholder for the name of the require in uppercase (
zlib/1.2.11) or the one
cpp_info.name or in
cpp_info.names["cmake_paths"] if specified.