mcst-linux-kernel/patches-2024.06.26/gl4es-1.1.4/0251-check-build-type.patch

14 lines
508 B
Diff

--- a/CMakeLists.txt 2024-04-11 15:53:12.615439102 +0000
+++ b/CMakeLists.txt 2024-04-11 15:52:15.834318143 +0000
@@ -8,6 +8,10 @@
link_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
+if(CMAKE_BUILD_TYPE MATCHES RELEASE)
+ add_compile_definitions("GL4ES_SILENCE_MESSAGES=1")
+endif()
+
option(PANDORA "Set to ON if targeting an OpenPandora device" ${PANDORA})
option(PYRA "Set to ON if targeting an Dragonbox Pyra device" ${PYRA})
option(BCMHOST "Set to ON if targeting an RPi(2) device" ${BCMHOST})