You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[cmake] CMake Error at CMakeLists.txt:15 (add_executable):
[cmake] Target "helloworld" links to target "Boost::any" but the target was not
[cmake] found. Perhaps a find_package() call is missing for an IMPORTED target, or
[cmake] an ALIAS target is missing?
The text was updated successfully, but these errors were encountered:
Boost::any is a separate library/target than program_options. You could add fetching https://github.com/boostorg/any.git to retrieve this target, though you may end up needing another library that Boost Program Options also depends on. You could instead try fetching the super project boost repository than has all Boost libraries, https://github.com/boostorg/boost. This will give you all Boost libraries, but you should still only have access to and build the explicit targets you link to, like (Boost::program_options).
I trying to include program_options in a simple testapp, by using CMake.
Trying to build this yields
The text was updated successfully, but these errors were encountered: