d4ceda94be
- Add fix-gcc10-compiler-detection.patch in order to fix boo#1158320. OBS-URL: https://build.opensuse.org/request/show/753311 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libgme?expand=0&rev=20
14 lines
649 B
Diff
14 lines
649 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 392b018..71d215e 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -66,7 +66,7 @@ if (CMAKE_COMPILER_IS_GNUCXX)
|
|
if (__LIBGME_TEST_VISIBILITY)
|
|
# get the gcc version
|
|
exec_program(${CMAKE_CXX_COMPILER} ARGS --version OUTPUT_VARIABLE _gcc_version_info)
|
|
- string (REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
|
|
+ string (REGEX MATCH "[0-9]+\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
|
|
|
|
# gcc <4.1 had poor support for symbol visibility
|
|
if ((${_gcc_version} VERSION_GREATER "4.1") OR (${_gcc_version} VERSION_EQUAL "4.1"))
|