Description: compile coeurl with CMake The CMakeList disallows building outside of FetchContent, but the way we're compiling it is essentially the same. Author: Pablo Barciela Reviewed-By: Hubert Chathi Forwarded: not-needed Last-Update: 2024-03-17 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/coeurl/CMakeLists.txt +++ b/coeurl/CMakeLists.txt @@ -31,10 +31,6 @@ HOMEPAGE_URL "https://nheko.im/nheko-reborn/cocurl" LANGUAGES CXX) -if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) - message(FATAL_ERROR "The CMake build for coeurl is not intended for installation or usage outside of FetchContent. Use meson instead.") -endif() - add_library(coeurl lib/client.cpp lib/request.cpp lib/errors.cpp) add_library(coeurl::coeurl ALIAS coeurl) target_include_directories(coeurl PUBLIC