mirror of https://github.com/OpenRCT2/OpenRCT2.git
Apply workaround for old compilers
https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1568899
This commit is contained in:
parent
06e139f4cb
commit
7fec13ac74
|
@ -106,6 +106,13 @@ if (NOT DISABLE_NETWORK)
|
||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (NOT APPLE AND NOT MINGW)
|
||||||
|
# This is ugly hack to work around https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1568899.
|
||||||
|
# Once C++17 is enabled (and thus old compilers are no longer supported, this needs to be gone.
|
||||||
|
# We cannot simply detect the _compiler_ version, as the bug exists with the C++ _library_
|
||||||
|
target_link_libraries(${PROJECT} gcc_s gcc)
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (NOT DISABLE_TTF)
|
if (NOT DISABLE_TTF)
|
||||||
if (STATIC)
|
if (STATIC)
|
||||||
target_link_libraries(${PROJECT} ${FREETYPE_STATIC_LIBRARIES})
|
target_link_libraries(${PROJECT} ${FREETYPE_STATIC_LIBRARIES})
|
||||||
|
|
Loading…
Reference in New Issue