Confusion over the Install Step #334
Unanswered
amirmasoudabdol
asked this question in
Q&A
Replies: 1 comment
-
Why not simple do set(BOOST_INCLUDE_LIBRARIES nowide filesystemsystem date_time timer chrono atomic)
CPMAddPackage(...) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using CPM to add a few dependencies to my project, and one of them is Boost. So far, I was dealing with building the project, and it all works fine. However, now I want to start shipping it, and prepare it such that CMake can install it too.
When it comes to Boost, I'm building it via the CPM, and strictly use it as static library by
After this, I know that Boost is being used as static library because I don't see traces of it in
otool -L
. However, when I use mymake install
. I end up getting this error which baffles me,Install the project... -- Install configuration: "" CMake Error at cmake_install.cmake:42 (include): include could not find requested file: build/_deps/boost-build/cmake_install.cmake
I'm not so fluent with installation steps yet, so this could be some silly mistake in my part but I'm not sure. To me, the installation of CMake should not be triggered at all since I'm using it as static library.
For the reference, I'm adding Boost like below. Btw, I'm not so sure if I'm doing this,
"CMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}"
correctly. I did it because I wanted to propagate myBUILD_TYPE
to my dependencies as well. I don't expect this to be a problem since it happens even without it.Also, for some reason, I cannot get the
CPM_USE_LOCAL_PACKAGES
to work. I set it just before adding a package, but it doesn't work!Beta Was this translation helpful? Give feedback.
All reactions