void-packages/srcpkgs/arcan/patches/show-message.patch
Đoàn Trần Công Danh d60853f226 arcan: fix build
2022-01-10 18:16:56 +07:00

22 lines
641 B
Diff

Index: a/src/CMakeLists.txt
===================================================================
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,16 +1,8 @@
# tried playing nice by using REQUIRE_QUIET but some built-in modules
# (CheckLibraryExists, ...) wouldn't listen so how about a nice cup
# of shut up.
-function(message)
- list(GET ARGV 0 TYPE)
- if (TYPE STREQUAL "FATAL_ERROR")
- list(REMOVE_AT ARGV 0)
- _message(${TYPE} ${CL_RED} "${ARGV}" ${CL_RST})
- endif()
-endfunction()
-
function(amsg msg)
- _message("" ${msg})
+ message("" ${msg})
endfunction()
if (CLIENT_LIBRARY_BUILD OR BUILD_PRESET STREQUAL "client")