question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

conan_add_remote() requires conan_check()

See original GitHub issue

conan exe is run inconsistently across conan.cmake. conan_cmake_install() uses conan from system PATH by default: https://github.com/conan-io/cmake-conan/blob/c0258fce782597a6ef64050e2e67846598d27536/conan.cmake#L268 https://github.com/conan-io/cmake-conan/blob/c0258fce782597a6ef64050e2e67846598d27536/conan.cmake#L285-L289 https://github.com/conan-io/cmake-conan/blob/c0258fce782597a6ef64050e2e67846598d27536/conan.cmake#L334-L336 but conan_add_remote() requires conan_check() to find it first: https://github.com/conan-io/cmake-conan/blob/c0258fce782597a6ef64050e2e67846598d27536/conan.cmake#L437 https://github.com/conan-io/cmake-conan/blob/c0258fce782597a6ef64050e2e67846598d27536/conan.cmake#L446 https://github.com/conan-io/cmake-conan/blob/c0258fce782597a6ef64050e2e67846598d27536/conan.cmake#L464 https://github.com/conan-io/cmake-conan/blob/c0258fce782597a6ef64050e2e67846598d27536/conan.cmake#L478-L479 Without conan_check() variable CONAN_CMD does not exist and cmake function execute_process() (and thus macro conan_add_remote()) silently fails. No error message is shown, cmake continues execution. I think that

  1. We somehow should check if execute_process() has been succeeded. On my system (python 3.7 windows x64) if I add RESULT_VARIABLE res to execute_process() parameters, it returns The system cannot find the file specified in res on failure. But I don’t know how to get numeric exit code from execute_process() to test if it’s non-zero. Any idea?
  2. All functions have to use ${CONAN_CMD} by default that probably should be set by find_program(CONAN_CMD conan) at the very beginning.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
memshardedcommented, Jun 20, 2019

This has been mostly resolved by https://github.com/conan-io/cmake-conan/pull/146 (thanks @rddesmond ), so I am closing this. If there is some further detail that you still are interested in, like additional arguments, please open a new issue for it. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found