mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-09-08 07:42:55 +02:00
apply patch to libnatpmp repo so we can compile on macOS with CMake
This commit is contained in:
parent
3d72a43a19
commit
69efa924e2
2 changed files with 21 additions and 0 deletions
|
@ -22,6 +22,8 @@ FetchContent_Declare(
|
|||
GIT_REPOSITORY https://github.com/miniupnp/libnatpmp.git
|
||||
GIT_TAG master
|
||||
GIT_SHALLOW ON
|
||||
PATCH_COMMAND git apply ${CMAKE_SOURCE_DIR}/ext/cmake-patches/libnatpmp.patch
|
||||
UPDATE_DISCONNECTED TRUE
|
||||
)
|
||||
FetchContent_MakeAvailable(libnatpmp)
|
||||
|
||||
|
|
19
ext/cmake-patches/libnatpmp.patch
Normal file
19
ext/cmake-patches/libnatpmp.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 16af4aa..1eb89f7 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,6 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
-file(STRINGS VERSION PVER)
|
||||
+set(PVER "20120821")
|
||||
|
||||
project(natpmp
|
||||
LANGUAGES C
|
||||
diff --git a/VERSION b/VERSION
|
||||
deleted file mode 100644
|
||||
index 2ed7994..0000000
|
||||
--- a/VERSION
|
||||
+++ /dev/null
|
||||
@@ -1 +0,0 @@
|
||||
-20120821
|
Loading…
Add table
Reference in a new issue