We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65c9423 commit dcdaa69Copy full SHA for dcdaa69
third-party/CMakeLists.txt
@@ -18,6 +18,12 @@ FetchContent_Declare(
18
URL_HASH SHA256=ff865a36bad5c72b8e7ebc4b7cf5f27a820fce4faff9c571c1791e3728355a39
19
)
20
21
-set(MSGPACK_BUILD_EXAMPLES OFF)
22
23
-FetchContent_MakeAvailable(msgpackc)
+FetchContent_GetProperties(msgpackc)
+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