void-packages/srcpkgs/ispc/patches/cmake-build-type-none.patch
2021-04-03 10:13:05 +07:00

18 lines
803 B
Diff

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