Skip to content

Commit 13e542e

Browse files
committed
fix: disable build examples in msgpack
1 parent a3d780e commit 13e542e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

third-party/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ FetchContent_Declare(
1818
URL_HASH SHA256=ff865a36bad5c72b8e7ebc4b7cf5f27a820fce4faff9c571c1791e3728355a39
1919
)
2020

21-
set(MSGPACK_BUILD_EXAMPLES OFF)
2221

23-
FetchContent_MakeAvailable(msgpackc)
22+
FetchContent_GetProperties(msgpackc)
23+
if(NOT msgpackc_POPULATED)
24+
FetchContent_Populate(msgpackc)
25+
26+
set(MSGPACK_BUILD_EXAMPLES OFF)
27+
28+
add_subdirectory(${msgpackc_SOURCE_DIR} ${msgpackc_BINARY_DIR} EXCLUDE_FROM_ALL)
29+
endif()

0 commit comments

Comments
 (0)