-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
Labels
acknowledgedThe issue is being worked onThe issue is being worked onbugSomething isn't workingSomething isn't workingfixedBug has been fixed and the fix testedBug has been fixed and the fix tested
Description
Describe the bug
After installing conan with pip and enabling conan support for project, several things are not working properly:
${PROJECT_NAME}_CONAN_REQUIRESand${PROJECT_NAME}_CONAN_OPTIONSare not being detected.- When detected, libraries are not linked so, compilation is failing (tested with boost only)
Already managed to fix that, so you can apply that @filipdutescu:
- For first issue, just replace
${CONAN_REQUIRES}with${${PROJECT_NAME}_CONAN_REQUIRES}inConan.cmake- just a typo :) apply same for${CONAN_OPTIONS} - For second,
conan_basic_setup()needs to be called withinConan.cmake.
To Reproduce
Steps to reproduce the behavior:
- Clone repo
- Install conan via pip
- Enable conan in
cmake/StandardSettings.cmake - Add dependency in
cmake/Conan.cmake, likeset(${PROJECT_NAME}_CONAN_REQUIRES "boost/1.77.0") - Use the library somewhere in example project, like
#include <boost/archive/text_oarchive.hpp>ininclude/project/tmp.hpp - Build the project, enjoy the compilation error.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. Windows] Ubuntu
- Version [e.g. 10] 20.04
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
acknowledgedThe issue is being worked onThe issue is being worked onbugSomething isn't workingSomething isn't workingfixedBug has been fixed and the fix testedBug has been fixed and the fix tested