cmake-conan icon indicating copy to clipboard operation
cmake-conan copied to clipboard

Compute CMAKE_PROGRAM_PATH from returned json

Open jcar87 opened this issue 11 months ago • 0 comments

This might work to set this after the first call to find_package (as the known limitation).

The implementation in CMakeToolchain is:

        build_req = self._conanfile.dependencies.build.values()
        build_bin_paths = []
        for req in build_req:
            cppinfo = req.cpp_info.aggregated_components()
            build_paths.extend(cppinfo.builddirs)
            build_bin_paths.extend(cppinfo.bindirs)

This is just an approximation by relying on the json alone.

jcar87 avatar Mar 11 '24 16:03 jcar87