cmake-conan icon indicating copy to clipboard operation
cmake-conan copied to clipboard

conan install reference argument

Open mcakircali opened this issue 5 years ago • 2 comments

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.

mcakircali avatar Oct 11 '20 10:10 mcakircali

Hi @mcakircali, Could you please give me some more details of your use case and the issues you are facing? Thanks a lot

czoido avatar Oct 19 '20 16:10 czoido

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.

mcakircali avatar Oct 22 '20 05:10 mcakircali