mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
build: Add msgpack as git submodule
This commit is contained in:
12
third_party/cmake/msgpack/CMakeLists.txt
vendored
Normal file
12
third_party/cmake/msgpack/CMakeLists.txt
vendored
Normal 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)
|
||||
Reference in New Issue
Block a user