mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Merge pull request #656 from daleglass/fix-build-on-gcc10
Fix build of hifiSdl2 on GCC 10
This commit is contained in:
commit
39c36e275f
1 changed files with 8 additions and 1 deletions
|
@ -8,7 +8,14 @@
|
|||
|
||||
if (NOT APPLE)
|
||||
set(TARGET_NAME hifiSdl2)
|
||||
if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 10.0)
|
||||
# GCC 10 and above sets -fno-common by default, and causes a linking problem here:
|
||||
# multiple definition of `WAYLAND_wl_proxy_marshal'
|
||||
#
|
||||
# Work around it per https://medium.com/@clentfort/using-esy-sdl2-with-gcc-10-91b4fa0c5aa9
|
||||
link_libraries("-Wl,--allow-multiple-definition")
|
||||
endif()
|
||||
setup_hifi_plugin(Qml)
|
||||
link_hifi_libraries(shared controllers ui plugins input-plugins script-engine)
|
||||
target_sdl2()
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue