Comments (11)
Yes, exactly, the CLion plugin uses the cmake-conan
integration, so this is why I moved this to this project.
from cmake-conan.
Hi @rturrado - thanks for reporting this. This is listed as one of the current limitations in the Readme, however we are currently working to implement support for this in #626
from cmake-conan.
Indeed we have :) Thanks for reporting these things - little by little this integration is proving to be robust :D
from cmake-conan.
Hi @rturrado
Thanks for your report.
I am not sure what would be the difference. What command line without CLion are you using?
The main difference could be if using the CMakeToolchain
somehow, but if you are using CMAKE_PROJECT_TOP_LEVEL_INCLUDES="conan_provider.cmake"
in the command line, it should behave the same.
If you are using conan install
+ cmake --preset
on the command line, that would explain, because the presets use the generated conan_toolchain.cmake
and that toolchain defines the necessary paths so find_program()
finds executables.
from cmake-conan.
Hi @memsharded ,
Thanks for your quick reply. For the command line, I'm just building with conan build . <profile(s)> -b missing
. For example:
conan build . -pr:a=conan/profiles/tests-debug -b missing
from cmake-conan.
That explains the behavior.
The conan build
uses the full CMakeToolchain
with the conan_toolchain.cmake
, etc, that contains those paths so find_program()
is found.
So this would be a cmake-conan
issue, if it is possible or not to have find_program()
work for tool-requires transparently.
To reproduce, you can run in the command line with -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES
argument, and it should be the same, so not specifically a CLion plugin issue.
I am moving this to cmake-conan
repo, thanks.
from cmake-conan.
@jcar87 maybe we want to consider adding CMAKE_PROGRAM_PATH
definition to the provider?
from cmake-conan.
Actually, I also do self.requires("tree-gen/1.0.6")
.
Excuse me, how can I pass that -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES
on to conan build
?
from cmake-conan.
Excuse me, how can I pass that -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES on to conan build?
It is not passed to Conan, but to cmake -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=...
from cmake-conan.
Well, this command line indeed reproduces the issue:
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES="conan_provider.cmake" -DCONAN_HOST_PROFILE="default;auto-cmake;/mnt/e/Programacion/code/c++/libqasm/conan/profiles/tests-debug-compat" -DLIBQASM_BUILD_TESTS=ON -DLIBQASM_COMPAT=ON -DASAN_ENABLED=OFF
I basically copied what I had in the CLion CMake settings (see screenshot attached), and added the CMAKE_BUILD_TYPE
.
Thanks for your help @memsharded !
from cmake-conan.
Many thanks guys! Great work. I also noticed (quite some time ago) that you had fixed another issue I was experiencing with the CLion Conan plugin (the one that forced you to comment out the deps = CMakeDeps(self); deps.generate()
lines in def generate(self)
in conanfile.py
).
from cmake-conan.
Related Issues (20)
- [develop2] Allow passing pathname to other conanfile.txt
- Question about mixing debug build with release dependencies HOT 2
- [question] Invalid: 'settings.compiler.runtime' value not defined HOT 21
- Different formatting of msvc runtime value conan_provider.cmake
- Installing only certain packages HOT 8
- [develop2] Question: How stable is the current state HOT 2
- tools.build:compiler_executables breaks build with Autotools and Xcode HOT 3
- [develop2] detect_compiler() detects invalid 'settings.compiler.version' for apple-clang
- [develop2] Can conan_provider.cmake work with add_subdirectory HOT 6
- [bug] generated settings.yml missing Macos.version "14.2", causes build failures HOT 10
- [develop2, BUG] Unknown arguments specified in conan_provider.cmake:519 HOT 2
- Unable to cross compile openssl/3.x.x on develop2 HOT 6
- Using "build-scripts" package via tool_requires() not working HOT 2
- [develop2] CMAKE_CONFIGURATION_TYPES with custom build types not getting dependencies added properly HOT 3
- ERROR: Invalid setting '6' is not a valid 'settings.compiler.version' value HOT 2
- 【conan install】conan_provider.cmake downloads packages from source because detect_host_profile generates compiler.cppstd=xx in the cmake-build-release/conan_host_profile file with the detect_host_profile method HOT 5
- cmake bootstrapping fails if not on PATH HOT 3
- Not working with conan editable mode HOT 5
- Update readme with more details HOT 1
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 cmake-conan.