Skip to content

Commit 0b2c6d9

Browse files
committed
Prevent looking for Boost if we do not need it
1 parent cef8a6f commit 0b2c6d9

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)