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: but conan_add_remote() requires conan_check() to find it first: 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

memshardedcommented, Jun 20, 2019

This has been mostly resolved by (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 Post

No results found

github_iconTop Related Hashnode Post

No results found