This is an experimental feature subject to breaking changes in future releases.
This generator is similar to the cmake_find_package generator but it allows working with
multi-configuration projects like
Visual Studio with both
Release. But there are some differences:
- Only works with CMake > 3.0
- It doesn’t generate
- The “global” approach is not supported, only “modern” CMake by using targets.
$ conan install . -g cmake_find_package_multi -s build_type=Debug $ conan install . -g cmake_find_package_multi -s build_type=Release
These commands will generate several files for each dependency in your graph, including a
XXXConfig.cmake that can be located
by the CMake find_package(XXX) command, with XXX as the package name.
The name of the files follows the pattern
<package_name>Config.cmake. So for the
zlibConfig.cmake file will be generated.
Check the section cmake_find_package_multi to read more about this generator and the adjusted CMake variables/targets.