You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need (as many others) dependency manager that is not tied to a particular C++ build system. Please provide any information about how to use conan with multiple build systems.
Can conan be used in scenario below?
(main project) project A uses CMake
(dependency) project B uses gn
(dependency) project C uses Bazel
project A depends on project B and project C
CMake can see public definitions (target_compile_definitions) and public include directories (target_include_directories) created by other CMake dependencies.
Is it possible to use public definitions and include directories created by gn/Bazel/etc. project in CMake project?
Maybe conan can be used to store build information parsed from compile_commands.json and generate files per each build system (files with variables that store compile definitions and include directories)?
The greatest part is that every package can have its own build system, consume dependencies that are using other build systems and be used by others with different build systems. It basically works as follows:
each package defines in its package_info() method what it contains. Library names, flags, includedirs, etc.
There are generators that can be used to consume packages, if you use the cmake generator, Conan will generate for you a single conanbuildinfo.cmake with all the information, if you use cmake_find_package_multi it will generate xxxx-config.cmake scripts, one per dependency, if you use MSBuildDeps, it will generate properties .props files to be used by Visual Studio.
At the moment there is no Bazel generator, we are aware of some users using Conan for Bazel, but it was not contributed back to open source. If anyone is interested in contributed, we would certainly help in the process
I need (as many others) dependency manager that is not tied to a particular C++ build system. Please provide any information about how to use conan with multiple build systems.
Can conan be used in scenario below?
CMake can see public definitions (
target_compile_definitions
) and public include directories (target_include_directories
) created by other CMake dependencies.Is it possible to use public definitions and include directories created by gn/Bazel/etc. project in CMake project?
Maybe conan can be used to store build information parsed from
compile_commands.json
and generate files per each build system (files with variables that store compile definitions and include directories)?related to
#6235 (comment)
#6235 (comment)
The text was updated successfully, but these errors were encountered: