Skip to content

Commit d5cef62

Browse files
authored
Merge pull request #1032 from AlexisTM/feature/prevent_usage_of_boost
Prevents the looking for boost if built without it for dependents
2 parents cef8a6f + 0b2c6d9 commit d5cef62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

msgpack-config.cmake.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
include(CMakeFindDependencyMacro)
44

5-
find_dependency(Boost REQUIRED)
5+
IF (@MSGPACK_USE_BOOST@)
6+
find_dependency(Boost REQUIRED)
7+
ENDIF ()
68

79
include("${CMAKE_CURRENT_LIST_DIR}/msgpackc-cxx-targets.cmake")
810

0 commit comments

Comments
 (0)