build: Add msgpack as git submodule

This commit is contained in:
Lars Toenning
2024-06-09 23:33:59 +02:00
parent 61793a02a1
commit 14cd2ded43
7 changed files with 18 additions and 7 deletions

View File

@@ -0,0 +1,12 @@
# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
# SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
# for simplicity, we are using our own CMake file to provide the msgpack-cxx target
add_library(msgpack-cxx INTERFACE)
if(NOT EXISTS ${PROJECT_SOURCE_DIR}/third_party/msgpack/include/)
message(FATAL_ERROR "msgpack not found. Did you forget to initialize the git submodules?")
endif()
target_include_directories(msgpack-cxx INTERFACE ${PROJECT_SOURCE_DIR}/third_party/msgpack/include)