Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dcdaa69

Browse files
committedDec 10, 2022
fix: disable build examples in msgpack
1 parent 65c9423 commit dcdaa69

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)
Please sign in to comment.