From 8048e3997d95b81a5fbebf468aa662f911bf9fd2 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, 28 Mar 2021 10:43:24 +0700 Subject: [PATCH] zbackup: don't overwrite CMAKE_BUILD_TYPE --- .../patches/cmake-build-type-none.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/zbackup/patches/cmake-build-type-none.patch diff --git a/srcpkgs/zbackup/patches/cmake-build-type-none.patch b/srcpkgs/zbackup/patches/cmake-build-type-none.patch new file mode 100644 index 00000000000..6d6ebc8e124 --- /dev/null +++ b/srcpkgs/zbackup/patches/cmake-build-type-none.patch @@ -0,0 +1,26 @@ +Index: CMakeLists.txt +=================================================================== +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -6,8 +6,6 @@ project( zbackup ) + + set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ) + +-set( CMAKE_BUILD_TYPE Release ) +- + find_package( ZLIB REQUIRED ) + include_directories( ${ZLIB_INCLUDE_DIRS} ) + +Index: tartool/CMakeLists.txt +=================================================================== +--- tartool/CMakeLists.txt.orig ++++ tartool/CMakeLists.txt +@@ -4,8 +4,6 @@ + cmake_minimum_required( VERSION 2.6.0 ) + project( tartool ) + +-set( CMAKE_BUILD_TYPE Release ) +- + add_executable( tartool tartool.cc ../file.cc ../dir.cc ) + + install( TARGETS tartool DESTINATION bin )