File fix-CMakeLists_txt.patch of Package hydrogen

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,7 @@
 # CMAKE SETUP
 #
 
-cmake_minimum_required(VERSION 3.8)
+cmake_minimum_required(VERSION 3.10)
 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
 # The CMake Policy mechanism is designed to help keep existing projects building as new versions of CMake introduce changes in behavior.
 # http://www.cmake.org/cmake/help/cmake2.6docs.html#command:cmake_policy
@@ -18,7 +18,7 @@ project(hydrogen)
 set(VERSION_MAJOR "2")
 set(VERSION_MINOR "0")
 set(VERSION_PATCH "0")
-set(VERSION_SUFFIX "pre-alpha")
+#set(VERSION_SUFFIX "pre-alpha")
 
 set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
 
@@ -27,12 +27,12 @@ if(VERSION_SUFFIX)
 endif()
 
 # Consider any tagged commit as a release build
-execute_process(COMMAND git describe --exact-match --tags OUTPUT_VARIABLE GIT_ON_TAG)
-if(GIT_ON_TAG)
-    set(IS_DEVEL_BUILD "false")
-else()
+#execute_process(COMMAND git describe --exact-match --tags OUTPUT_VARIABLE GIT_ON_TAG)
+#if(GIT_ON_TAG)
+#    set(IS_DEVEL_BUILD "false")
+#else()
     set(IS_DEVEL_BUILD "true")
-endif()
+#endif()
 
 # In order to avoid for things to get out of sync, it is also possible to hand
 # over a version (from e.g. the build pipeline) and bypass the version string
@@ -132,7 +132,7 @@ if(WANT_DEBUG)
     set(CMAKE_BUILD_TYPE Debug)
     set(H2CORE_HAVE_DEBUG TRUE)
 else()
-    set(CMAKE_BUILD_TYPE Release)
+    set(CMAKE_BUILD_TYPE RelWithDebInfo)
     set(H2CORE_HAVE_DEBUG FALSE)
 endif()
 
@@ -173,7 +173,7 @@ endif()
 if(WANT_DEBUG)
 	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0")
 else()
-	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -ffast-math")
+	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffast-math")
 endif()
 
 if(WANT_APPIMAGE)
openSUSE Build Service is sponsored by