void-packages/srcpkgs/renderdoc/patches/build-type-none-is-release.patch
2021-04-03 10:13:04 +07:00

12 lines
488 B
Diff

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -315,6 +315,7 @@ set(RELEASE_MODE 0)
if(cmake_build_type_lower STREQUAL "release" OR
cmake_build_type_lower STREQUAL "relwithdebinfo" OR
+ cmake_build_type_lower STREQUAL "none" OR
cmake_build_type_lower STREQUAL "minsizerel")
add_definitions(-D_RELEASE)
message(STATUS "Building RenderDoc in Release mode: ${CMAKE_BUILD_TYPE}")