From fb97ba28deb1b76a9e6272a9e8d97f0c4e38b0c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 21 Mar 2021 15:56:50 +0700 Subject: [PATCH] darktable: fix CMAKE_BUILD_TYPE=None --- .../darktable/patches/cmake-build-type-none.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/darktable/patches/cmake-build-type-none.patch diff --git a/srcpkgs/darktable/patches/cmake-build-type-none.patch b/srcpkgs/darktable/patches/cmake-build-type-none.patch new file mode 100644 index 00000000000..7101f9c1a0e --- /dev/null +++ b/srcpkgs/darktable/patches/cmake-build-type-none.patch @@ -0,0 +1,14 @@ +Index: src/external/rawspeed/cmake/build-type.cmake +=================================================================== +--- src/external/rawspeed/cmake/build-type.cmake.orig ++++ src/external/rawspeed/cmake/build-type.cmake +@@ -27,9 +27,6 @@ string(TOUPPER "${RAWSPEED_SPECIAL_BUILD + + # is this one of the known build types? + list (FIND CMAKE_CONFIGURATION_TYPES_UPPERCASE ${CMAKE_BUILD_TYPE_UPPERCASE} BUILD_TYPE_IS_KNOWN) +-if (${BUILD_TYPE_IS_KNOWN} EQUAL -1) +- message(SEND_ERROR "Unknown build type: ${CMAKE_BUILD_TYPE_UPPERCASE}. Please specify one of: ${CMAKE_CONFIGURATION_TYPES}") +-endif() + + # is this a special build? + list (FIND RAWSPEED_SPECIAL_BUILD_TYPES_UPPERCASE ${CMAKE_BUILD_TYPE_UPPERCASE} IS_SPECIAL_BUILD)