Make find_package() call optional to allow for boost submodule installations

This commit is contained in:
2025-02-12 16:29:46 +01:00
parent d52090f438
commit 3c8b260430

View File

@ -21,7 +21,9 @@ target_include_directories(
target_compile_features(async_mqtt5 INTERFACE cxx_std_17)
find_package(Boost 1.82 REQUIRED)
if (NOT ASYNC_MQTT5_SKIP_FIND_PACKAGE)
find_package(Boost 1.82 REQUIRED)
endif()
target_link_libraries(async_mqtt5
INTERFACE
Boost::headers