From 4adbe06fefb69b8b98f799ed022cab88eb7148cc Mon Sep 17 00:00:00 2001 From: JackBoosY <47264268+JackBoosY@users.noreply.github.com> Date: Fri, 19 Apr 2019 04:49:35 +0800 Subject: [PATCH] [check]Fix always built as debug library. (#6135) * [jemalloc]Fix dll generated when generating static library * Revert "[jemalloc]Fix dll generated when generating static library" This reverts commit a833bf5593be181e065af097732c78cb810888fd. * [check]Fix always built as debug library. --- ports/check/CONTROL | 2 +- ports/check/fix-build-debug-mode.patch | 15 +++++++++++++++ ports/check/portfile.cmake | 2 ++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 ports/check/fix-build-debug-mode.patch diff --git a/ports/check/CONTROL b/ports/check/CONTROL index 4627d042216..8deb787bcd0 100644 --- a/ports/check/CONTROL +++ b/ports/check/CONTROL @@ -1,3 +1,3 @@ Source: check -Version: 0.12.0-1 +Version: 0.12.0-2 Description: A unit testing framework for C diff --git a/ports/check/fix-build-debug-mode.patch b/ports/check/fix-build-debug-mode.patch new file mode 100644 index 00000000000..edf43006018 --- /dev/null +++ b/ports/check/fix-build-debug-mode.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0d66a5d..3b9a72d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -39,10 +39,6 @@ set(CHECK_VERSION + + set(MEMORY_LEAKING_TESTS_ENABLED 1) + +-############################################################################### +-# Set build features +-set(CMAKE_BUILD_TYPE Debug) +- + ############################################################################### + # Option + option(CHECK_ENABLE_TESTS diff --git a/ports/check/portfile.cmake b/ports/check/portfile.cmake index 1713a39a990..f7561db1998 100644 --- a/ports/check/portfile.cmake +++ b/ports/check/portfile.cmake @@ -5,6 +5,8 @@ vcpkg_from_github( REF 0.12.0 SHA512 f7b6452b69f999a90e86a8582d980c0c1b74ba5629ee34455724463ba62bfe3501ad0415aa771170f5c638a7a253f123bf87cbef25aadc6569a7a3a4d10fce90 HEAD_REF master + PATCHES + fix-build-debug-mode.patch ) vcpkg_configure_cmake(