cmake-conan
cmake-conan copied to clipboard
CMake wrapper for conan C and C++ package manager
Add the following arguments of [`conan install`](https://docs.conan.io/en/latest/reference/commands/consumer/install.html) command: - `--conf` - `--conf:host` - `--conf:build` for `conan_cmake_install()` function.
Recently, I found that Conan decided to deprecate "[cmake-conan](https://github.com/conan-io/cmake-conan)" in Conan 2.X. For example, in this [article](https://blog.conan.io/2022/09/28/upgrading-recipes-to-1.51.html) of the blog: > The biggest drawback is you need to call `conan...
Add `_get_conan_version()` function to aquire the current Conan version. Since some of `settings` are introduced in Conan 2.X but not in Conan 1.X or some of them are deprecated in...
If we don't initialize the variable `CMAKE_OSX_DEPLOYMENT_TARGET`, it tries to retrieve it from an environment variable, and if not, it calculates it based on the host platform. To prevent this,...
CMake version 3.29 adds the TIClang compiler natively. Since it behaves similarly to the Clang compiler, supporting in conan is easy. https://cmake.org/cmake/help/latest/release/3.29.html#compilers
### Environment details * M1 Macbook Pro * MacOS Sonoma 14.2.1 * conan 2.1.0 * python 3.11.5 ### Steps to reproduce Run conan initially. It will generate a `~/.conan2/settings.yml` with...
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...
Hi there! I have this project, [libqasm](https://github.com/QuTech-Delft/libqasm), which is doing: ``` def build_requirements(self): self.tool_requires("tree-gen/1.0.6") ``` at `conanfile.py`. Later on, at `CMakeLists.txt`, it tries to find a package, and a binary...
I have a top-level _CMakeLists.txt_ which has no `find_package` of its own, it just does `add_subdirectory` with a second directory (might be a git submodule for example). That second directory...
Close https://github.com/conan-io/cmake-conan/issues/621