From d241a2c607d162a18ff2d522220a37121a1460db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sat, 22 Feb 2020 00:07:35 +0100 Subject: community/emscripten-fastcomp: fix build with None build type --- community/emscripten-fastcomp/none-build-type.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 community/emscripten-fastcomp/none-build-type.patch (limited to 'community/emscripten-fastcomp/none-build-type.patch') diff --git a/community/emscripten-fastcomp/none-build-type.patch b/community/emscripten-fastcomp/none-build-type.patch new file mode 100644 index 0000000000..14f10b223f --- /dev/null +++ b/community/emscripten-fastcomp/none-build-type.patch @@ -0,0 +1,15 @@ +The build system includes its one check for available CMake build types. +This check is incorrect as it doesn't include the None build type. + +diff -upr emscripten-fastcomp-1.39.0.orig/CMakeLists.txt emscripten-fastcomp-1.39.0/CMakeLists.txt +--- emscripten-fastcomp-1.39.0.orig/CMakeLists.txt 2020-02-22 00:06:01.828125245 +0100 ++++ emscripten-fastcomp-1.39.0/CMakeLists.txt 2020-02-22 00:06:29.265827242 +0100 +@@ -267,7 +267,7 @@ endif() + string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE) + + if (CMAKE_BUILD_TYPE AND +- NOT uppercase_CMAKE_BUILD_TYPE MATCHES "^(DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL)$") ++ NOT uppercase_CMAKE_BUILD_TYPE MATCHES "^(NONE|DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL)$") + message(FATAL_ERROR "Invalid value for CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}") + endif() + -- cgit v1.2.3