ports/graphics/urho3d/files/patch-Source_ThirdParty_SDL_cmake_sdlchecks.cmake
Romain Tartière 773e684f1f New port: graphics/urho3d
Urho3D is a free lightweight, cross-platform 2D and 3D game engine implemented
in C++ and released under the MIT license. Greatly inspired by OGRE and
Horde3D.

WWW: https://urho3d.github.io/
2019-12-04 02:21:29 +00:00

10 lines
740 B
CMake

--- Source/ThirdParty/SDL/cmake/sdlchecks.cmake.orig 2019-05-24 15:51:45 UTC
+++ Source/ThirdParty/SDL/cmake/sdlchecks.cmake
@@ -356,6 +356,7 @@ endmacro()
macro(CheckX11)
if(VIDEO_X11)
# Urho3D - bug fix - in order to make these checks below work on both native and cross-compiling builds we need to add the '-shared' compiler flags to ensure the linker does not attempt to statically link against X11 shared libs which would otherwise fail the test when in cross-compiling mode
+ set(CMAKE_REQUIRED_INCLUDES "/usr/local/include")
set(CMAKE_REQUIRED_FLAGS "-fPIC -shared ${ORIG_CMAKE_REQUIRED_FLAGS}")
foreach (NAME X11 Xext Xcursor Xinerama Xi Xrandr Xrender Xss Xxf86vm)
string (TOUPPER ${NAME} UPCASE_NAME)