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.

cmake-tools failed to find `conanbuildinfo.cmake` file.

See original GitHub issue

Brief Issue Summary

cmake-tools failed to find conanbuildinfo.cmake file.

Expected:

The conanbuildinfo.cmake exists and should be found.

Apparent Behavior:

image

CMake Tools Log

[cmake] The C compiler identification is GNU 8.3.0
[cmake] The CXX compiler identification is GNU 8.3.0
[cmake] Check for working C compiler: /usr/bin/gcc-8
[cmake] Check for working C compiler: /usr/bin/gcc-8 -- works
[cmake] Detecting C compiler ABI info
[cmake] Detecting C compiler ABI info - done
[cmake] Detecting C compile features
[cmake] Detecting C compile features - done
[cmake] Check for working CXX compiler: /usr/bin/g++-8
[cmake] Check for working CXX compiler: /usr/bin/g++-8 -- works
[cmake] Detecting CXX compiler ABI info
[cmake] Detecting CXX compiler ABI info - done
[cmake] Detecting CXX compile features
[cmake] Detecting CXX compile features - done
[cmake] CMake Error at CMakeLists.txt:7 (include):
[cmake]   include could not find load file:
[cmake] 
[cmake]     /home/kaiyin/cProjects/gemreport/cmake_tools_build/conanbuildinfo.cmake
[cmake] 
[cmake] 
[cmake] CMake Error at CMakeLists.txt:8 (conan_basic_setup):
[cmake]   Unknown CMake command "conan_basic_setup".
[cmake] 
[cmake] 
[cmake] Configuring incomplete, errors occurred!
[cmake] See also "/home/kaiyin/cProjects/gemreport/cmake_tools_build/CMakeFiles/CMakeOutput.log".
[cms-driver] Error during CMake configure: [cmake-server] Configuration failed

Platform and Versions

  • Operating System: Ubuntu 19.04
  • CMake Version: 3.13.4
  • VSCode Version: 1.34.0
  • CMake Tools Extension Version: 1.1.3
  • Compiler/Toolchain: gcc 8.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
KoeMaicommented, Jun 5, 2019

The cmake extension does not has direkt conan support. Did you run conan install before build with the cmake extension? Is the conan install build folder the same as the cmake extension used build folder? How did you configure your cmake extension build directory (settings “cmake.buildDirectory”)?

0reactions
github-actions[bot]commented, Jan 29, 2022

This issue has been closed automatically because it needs more information and has not had recent activity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix unknown command error in CMake, when I using ...
Problem here is cmake is unable to find conanbuildinfo.cmake. This file should be generated when you call conan install.
Read more >
cmake-tools failed to find `conanbuildinfo.cmake` file.
Brief Issue Summary. cmake-tools failed to find conanbuildinfo.cmake file. Expected: The conanbuildinfo.cmake exists and should be found.
Read more >
New CMake transparent integration guide - Conan Blog
The way to consume Conan packages with the cmake generator was including a conanbuildinfo.cmake file and calling a conan_basic_setup() macro ...
Read more >
Modernizing Distribution of SDR Tools and Libraries with Conan
... but CMake did not find one. Could not find a package configuration file provided by "Sanitizers" with ... from conans import ConanFile,...
Read more >
C/C++ development with package managers - GitHub Pages
generates an import file for specific build system using specified settings and options ... from conans import ConanFile, CMake, tools class ...
Read more >

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