cmake-conan
cmake-conan copied to clipboard
conan install reference argument
The conan install command expects reference after path:
conan install path_or_reference [reference]
The conan.cmake implements install as first CONANFILE and last ARGUMENTS_INSTALL_ARGS.
There is no way to push references (version@user/channel) to the conanfile.py..
Either make CONANFILE to take an argument reference, or fix the order of conan install command arguments.
Hi @mcakircali, Could you please give me some more details of your use case and the issues you are facing? Thanks a lot
Hi @czoido, I don't define version and channel in conanfile.py, but generate them in CMakeLists.txt So, I need to pass the reference (version, channel, etc) to the conan install command. ARGUMENTS_INSTALL_ARGS can be used for that but it is placed in wrong order in the conan.cmake.