Comments (4)
The include(conan_toolchain.cmake)
definitely doesn't work if it is added after project()
call. In some scenarios it might work if passed before project()
call, but I think even in those cases the net effect is still not identical to passing it explicitly as a CMAKE_TOOLCHAIN_FILE
argument, as toolchains have some special meaning to CMake.
I'm not saying there's anything wrong with Conan here, but just providing a scenario where as a package consumer I don't see a path to accomplish what I want. If it's a reasonably common case maybe you want to brainstorm solutions - or perhaps just list it as a limitation in the docs.
Yes, this is a result of the majority of users complaining about Conan being intrusive and demanding a transparent integration, that basically needs to use a CMake toolchain.
I agree this is something that we want to at least think about it. It is also quite close to the "workspace" feature (check #15992), it shares the same challenges.
from conan.
Hmm...I wonder the disadvantage of include(conan_toolchain.cmake)
rather than specifying on the command line?
from conan.
it doesn't work - it seems like the targets don't get updated after the first definition
from conan.
Yes, this is a result of the majority of users complaining about Conan being intrusive and demanding a transparent integration, that basically needs to use a CMake toolchain.
At a high level I get the sentiment, but if you consider custom packages I think changing some references in your CMakeLists.txt is a pretty small part of migration to some other package manager (which I assume is the motivation for transparent integration)? But maybe I'm missing something, and if "the crowd demands it" I guess it doesn't matter anyhow.
from conan.
Related Issues (20)
- [suggestion] Allow specifying commit hash when installing config from git repository with `conan config install` HOT 3
- [bug] `self.source_folder` varies whether building with `conan create .` or `conan build .`. HOT 2
- [question] Artifactory compatibility between Conan 1 and Conan 2? HOT 6
- [question] alternative solution to Conan 1 alias? HOT 4
- Server side atomic uploads for concurrent uploads
- [question] compatibility strategy for Conan 1 between "Visual Studio" and "msvc"? HOT 3
- [question] How to properly capture SCM in complex scenarios? HOT 1
- [bug] __pycache__ presence violates cached package integrity HOT 10
- [feature] Manifold workspace HOT 6
- [question] Best practices to use Conan in large projects HOT 2
- [bug] VirtualBuildEnv causes compiler to load shared libraries from conan cache? HOT 11
- [question] runtime_deploy copying deps with run=False trait HOT 3
- [question] How to build locally with msys2 HOT 3
- [feature] Better error message when profile defines a tool_require loop by mistake HOT 1
- [bug] conan should not change ownership of files while extracting conan_package.tgz HOT 3
- [question] Undefined zlib references when building Qt
- [question] How to erase values from one profile to the other HOT 3
- [bug] required tool paths gets overridden when using host profiles HOT 3
- [question] CMake no depencency include directories in VS solution HOT 6
- [question] Support for gcc 14 in Conan 1 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conan.