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
With regard to the boost example in the CPM.cmake repository, I am trying to add a package right after the CPMAddPackage(NAME Boost ...) line:
set(MQTT_BUILD_EXAMPLES OFF CACHE BOOL "build mqtt_cpp examples" FORCE)
set(MQTT_BUILD_TESTS OFF CACHE BOOL "build mqtt_cpp tests" FORCE)
cpmaddpackage("gh:redboltz/mqtt_cpp#master")
However, I get this error when trying to build the project with cmake (from Ubuntu 22.04):
-- Configuring done
CMake Error: install(EXPORT "mqtt_cpp_ifaceTargets" ...) includes target "mqtt_cpp_iface" which requires target "boost_system" that is not in any export set.
CMake Error: install(EXPORT "mqtt_cpp_ifaceTargets" ...) includes target "mqtt_cpp_iface" which requires target "boost_date_time" that is not in any export set.
Do you know why this happens? It seems to me that the Boost targets do not get exported for some reasons.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi,
With regard to the boost example in the CPM.cmake repository, I am trying to add a package right after the CPMAddPackage(NAME Boost ...) line:
set(MQTT_BUILD_EXAMPLES OFF CACHE BOOL "build mqtt_cpp examples" FORCE)
set(MQTT_BUILD_TESTS OFF CACHE BOOL "build mqtt_cpp tests" FORCE)
cpmaddpackage("gh:redboltz/mqtt_cpp#master")
However, I get this error when trying to build the project with cmake (from Ubuntu 22.04):
-- Configuring done
CMake Error: install(EXPORT "mqtt_cpp_ifaceTargets" ...) includes target "mqtt_cpp_iface" which requires target "boost_system" that is not in any export set.
CMake Error: install(EXPORT "mqtt_cpp_ifaceTargets" ...) includes target "mqtt_cpp_iface" which requires target "boost_date_time" that is not in any export set.
Do you know why this happens? It seems to me that the Boost targets do not get exported for some reasons.
Thanks in advance.
The text was updated successfully, but these errors were encountered: