From 3c8b26043039ce9c106996314c87876b1eb8f64f Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Wed, 12 Feb 2025 16:29:46 +0100 Subject: [PATCH] Make find_package() call optional to allow for boost submodule installations --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 91b38de..d476785 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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