aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorlaanwj <126646+laanwj@users.noreply.github.com>2024-05-05 16:40:11 +0200
committerlaanwj <126646+laanwj@users.noreply.github.com>2024-09-30 11:37:55 +0200
commit20a18bf6aa38e87f72e2645482d00d0c77a344f5 (patch)
tree5e541c5c1464ce1c42e83bffb25d99540f70dc63 /cmake
parent7b04709862f48e9020c7bef79cb31dd794cf91d0 (diff)
build: Drop libnatpmp from build system
Diffstat (limited to 'cmake')
-rw-r--r--cmake/module/FindNATPMP.cmake32
1 files changed, 0 insertions, 32 deletions
diff --git a/cmake/module/FindNATPMP.cmake b/cmake/module/FindNATPMP.cmake
deleted file mode 100644
index 930555232b..0000000000
--- a/cmake/module/FindNATPMP.cmake
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright (c) 2023-present The Bitcoin Core developers
-# Distributed under the MIT software license, see the accompanying
-# file COPYING or https://opensource.org/license/mit/.
-
-find_path(NATPMP_INCLUDE_DIR
- NAMES natpmp.h
-)
-
-find_library(NATPMP_LIBRARY
- NAMES natpmp
-)
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(NATPMP
- REQUIRED_VARS NATPMP_LIBRARY NATPMP_INCLUDE_DIR
-)
-
-if(NATPMP_FOUND AND NOT TARGET NATPMP::NATPMP)
- add_library(NATPMP::NATPMP UNKNOWN IMPORTED)
- set_target_properties(NATPMP::NATPMP PROPERTIES
- IMPORTED_LOCATION "${NATPMP_LIBRARY}"
- INTERFACE_INCLUDE_DIRECTORIES "${NATPMP_INCLUDE_DIR}"
- )
- set_property(TARGET NATPMP::NATPMP PROPERTY
- INTERFACE_COMPILE_DEFINITIONS USE_NATPMP=1 $<$<PLATFORM_ID:Windows>:NATPMP_STATICLIB>
- )
-endif()
-
-mark_as_advanced(
- NATPMP_INCLUDE_DIR
- NATPMP_LIBRARY
-)