Trouble Adding Boost #300
-
I see that in the README file, we are suppose to add Boost from a very specific repo, however the Boost that they are offering is very old. Also, it seems like that Boost now supports CMake, so, I thought it would be fine to add it using the CPM, but I am not sure if it is working because I'm getting linker issues. Here is my CPM command
and here is CMake's output,
I can see that Boost is built properly, and all the libraries are there, but I don't think CPM is able to link them properly. All my calls to After further investigation, I realised that this is because Boost create its necessary CMake config files at the install stage, and CPM doesn't install thing. So, this is somewhat like this issue, but the other way around? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I found out that if I explicitly link the |
Beta Was this translation helpful? Give feedback.
-
Hey thanks for opening the discussion, at the time of creating the boost example, there still wasn't an official CMake version of boost that I was aware of, so we used a third party port instead. As you've noticed, this no longer seems to be the case and we can now use the official repository of the project. I've created a PR (#304) to update the example to the official library. |
Beta Was this translation helpful? Give feedback.
I found out that if I explicitly link the
Boost::filesystem
then the build succeed but I'm still worried about the empty${Boost_INCLUDE_DIRS}
!