How to add dependencies like Boost with CPMAddPackage? #175
Unanswered
viniciusferrao
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
You have to install all your dependent packages! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, this is a help call for anyone willing to help. I'm trying to add this template to an existing project but I'm having some issues with
BoostandCLI11dependencies.I've changed the main
CMakeLists.txtfile with the following content:And added to
target_link_libraries:But when I try to configure with
cmake -S all -B buildI receive this error message:I based the Boost settings from https://github.com/cpm-cmake/CPM.cmake (the snippets in
README.md). Everything else I tried to figure out by myself.Also I'm not sure if I done the changes in the right place, I don't get if I should add the required dependencies to the main CMakeLists.txt or if I should use the
standalonedirectory and changeCMakeLists.txtthere. I didn't understand it's purpose correctly to be honest.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions