File: cmake_coeurl

package info (click to toggle)
nheko 0.11.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,652 kB
  • sloc: cpp: 86,589; python: 875; sh: 243; makefile: 212; xml: 46; ansic: 6
file content (20 lines) | stat: -rw-r--r-- 864 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 <uhoreg@debian.org>
Last-Update: 2023-01-21

--- nheko-0.11.1.orig/coeurl/CMakeLists.txt
+++ nheko-0.11.1/coeurl/CMakeLists.txt
@@ -29,10 +29,6 @@ project(coeurl
 	DESCRIPTION "Simple library to do http requests asynchronously via CURL in C++."
 	HOMEPAGE_URL "https://nheko.im/nheko-reborn/cocurl")
 
-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