Debian Codegraph @

debian/patches/2001_cmake_coeurl.patch

raw symbols SCIP
1 Description: compile coeurl with CMake
2 The CMakeList disallows building outside of FetchContent,
3 but the way we're compiling it is essentially the same.
4 Author: Pablo Barciela
5 Reviewed-By: Hubert Chathi <[email protected]>
6 Forwarded: not-needed
7 Last-Update: 2024-03-17
8 ---
9 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
10 --- a/coeurl/CMakeLists.txt
11 +++ b/coeurl/CMakeLists.txt
12 @@ -31,10 +31,6 @@
13 HOMEPAGE_URL "https://nheko.im/nheko-reborn/cocurl"
14 LANGUAGES CXX)
15
16 -if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
17 - message(FATAL_ERROR "The CMake build for coeurl is not intended for installation or usage outside of FetchContent. Use meson instead.")
18 -endif()
19 -
20 add_library(coeurl lib/client.cpp lib/request.cpp lib/errors.cpp)
21 add_library(coeurl::coeurl ALIAS coeurl)
22 target_include_directories(coeurl PUBLIC