diff --git a/msgpack-config.cmake.in b/msgpack-config.cmake.in index eef212a05..09102c6a4 100644 --- a/msgpack-config.cmake.in +++ b/msgpack-config.cmake.in @@ -2,7 +2,9 @@ include(CMakeFindDependencyMacro) -find_dependency(Boost REQUIRED) +IF (@MSGPACK_USE_BOOST@) + find_dependency(Boost REQUIRED) +ENDIF () include("${CMAKE_CURRENT_LIST_DIR}/msgpackc-cxx-targets.cmake")