-
Notifications
You must be signed in to change notification settings - Fork 260
Open
Description
Hi there!
I have this project, libqasm, which is doing:
def build_requirements(self):
self.tool_requires("tree-gen/1.0.6")
at conanfile.py
. Later on, at CMakeLists.txt
, it tries to find a package, and a binary exported by that package:
find_package(tree-gen 1.0.6 REQUIRED)
find_program(TREE_GEN_EXECUTABLE tree-gen REQUIRED)
The logs show that the package is found, but not the binary:
-- CMake-Conan: find_package(tree-gen) found, 'conan install' already ran
-- Conan: Target declared 'tree-gen::tree-gen'
-- Conan: Including build module from '/home/rturrado/.conan2/p/b/tree-3b20ed43700df/p/lib/cmake/generate_tree.cmake'
CMake Error at src/CMakeLists.txt:86 (find_program):
Could not find TREE_GEN_EXECUTABLE using the following names: tree-gen
However, the binary is correctly found when building from the command line.
These are my CMake options (CLion > CMake tab > Settings):
-DCMAKE_PROJECT_TOP_LEVEL_INCLUDES="conan_provider.cmake" -DCONAN_HOST_PROFILE="default;auto-cmake;/mnt/e/Programacion/code/c++/libqasm/conan/profiles/tests-debug" -DLIBQASM_BUILD_TESTS=ON -DLIBQASM_COMPAT=ON -DASAN_ENABLED=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
May I be missing something from the CLion Conan configuration, a path where to search for the executable or something?
Many thanks!
Metadata
Metadata
Assignees
Labels
No labels