From 77f4f82cc0081348cc4b5ec32fbf9ccb2c646d0c 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:43:09 +0700 Subject: [PATCH] ispc: fix CMAKE_BUILD_TYPE=None --- .../ispc/patches/cmake-build-type-none.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/ispc/patches/cmake-build-type-none.patch diff --git a/srcpkgs/ispc/patches/cmake-build-type-none.patch b/srcpkgs/ispc/patches/cmake-build-type-none.patch new file mode 100644 index 00000000000..411e353c731 --- /dev/null +++ b/srcpkgs/ispc/patches/cmake-build-type-none.patch @@ -0,0 +1,18 @@ +Index: ispc-1.15.0/CMakeLists.txt +=================================================================== +--- ispc-1.15.0.orig/CMakeLists.txt ++++ ispc-1.15.0/CMakeLists.txt +@@ -157,13 +157,6 @@ set(OUTPUT_RELEASE Release/bin) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin ) + + if(CMAKE_BUILD_TYPE) +- # Validate build type +- set(CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo") +- +- string(FIND "${CONFIGURATION_TYPES}" "${CMAKE_BUILD_TYPE}" MATCHED_CONFIG) +- if (${MATCHED_CONFIG} EQUAL -1) +- message(FATAL_ERROR "CMAKE_BUILD_TYPE (${CMAKE_BUILD_TYPE}) allows only the following values: ${CONFIGURATION_TYPES}") +- endif() + else(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Release") + message(STATUS "Build type not specified: Use Release by default.")