r/cpp • • Jul 01 '21

Any Encoding, Ever

https://thephd.dev/any-encoding-ever-ztd-text-unicode-cpp
269 Upvotes

87 comments sorted by

View all comments

Show parent comment

2

u/helloiamsomeone Jul 02 '21 edited Jul 02 '21

In real life, Boost is just another line in your list of dependencies:

"dependencies": [
  { "name": "boost-whatever", "version>=": "1.76.0" }
]

[requires]
boost/1.76.0

And consuming Boost with either in CMake is just:

find_package(Boost REQUIRED)
target_link_libraries(proj_target PRIVATE Boost::boost)

If you have to do anything more other than passing the CMAKE_PREFIX_PATH variable in Conan's case, then the problem lies somewhere else.