From 17f034734a1f7a683fad62c775a43a034a4e2cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 27 Mar 2021 15:40:26 +0700 Subject: [PATCH] seexpr-krita: don't overwrite CMAKE_BUILD_TYPE --- .../patches/cmake-build-type-none.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/seexpr-krita/patches/cmake-build-type-none.patch diff --git a/srcpkgs/seexpr-krita/patches/cmake-build-type-none.patch b/srcpkgs/seexpr-krita/patches/cmake-build-type-none.patch new file mode 100644 index 00000000000..94bb1f37db7 --- /dev/null +++ b/srcpkgs/seexpr-krita/patches/cmake-build-type-none.patch @@ -0,0 +1,32 @@ +Index: CMakeLists.txt +=================================================================== +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -42,14 +42,6 @@ endif() + + ## Choose build options + # Disney specific method of choosing variant +-if (${FLAVOR} STREQUAL "optimize") +- set(CMAKE_BUILD_TYPE "Release" CACHE STRING "type of build" FORCE) +-endif() +- +-if (${FLAVOR} STREQUAL "debug") +- set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "type of build" FORCE) +-endif() +- + if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + execute_process( + COMMAND sh -c "echo `uname -s`-`uname -r | cut -d- -f1`-`uname -m`" +@@ -212,12 +204,6 @@ else() + endif() + + # Set to release if nothing else defined +-if (NOT CMAKE_BUILD_TYPE) +- set(CMAKE_BUILD_TYPE "Release" CACHE STRING +- "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." +- FORCE) +-endif() +- + if (ENABLE_QT5) + find_package(Qt5 5.9.0 COMPONENTS Core Gui Widgets REQUIRED) + set_package_properties(Qt5 PROPERTIES