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.")