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
-
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
Boost
andCLI11
dependencies.I've changed the main
CMakeLists.txt
file with the following content:And added to
target_link_libraries
:But when I try to configure with
cmake -S all -B build
I 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
standalone
directory and changeCMakeLists.txt
there. I didn't understand it's purpose correctly to be honest.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions