This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG), Euroboros (EB), and Down Under Doomers (DUD).
修订版 | 54a8436cdccb49c8ffe6c65c7eb955b1967e6df8 (tree) |
---|---|
时间 | 2020-11-16 05:31:10 |
作者 | DoomJoshuaBoy |
Commiter | DoomJoshuaBoy |
Fixed GME compile issue for GCC 10 or later
@@ -83,8 +83,9 @@ | ||
83 | 83 | set (ENABLE_VISIBILITY OFF) |
84 | 84 | if (__LIBGME_TEST_VISIBILITY) |
85 | 85 | # get the gcc version |
86 | + # [JS] This fixes the issue for GCC 10 or later | |
86 | 87 | exec_program(${CMAKE_CXX_COMPILER} ARGS --version OUTPUT_VARIABLE _gcc_version_info) |
87 | - string (REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}") | |
88 | + string (REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" _gcc_version "${_gcc_version_info}") | |
88 | 89 | |
89 | 90 | # gcc <4.1 had poor support for symbol visibility |
90 | 91 | if ((${_gcc_version} VERSION_GREATER "4.1") OR (${_gcc_version} VERSION_EQUAL "4.1")) |