Fix build with cmake 3.2 OBS-URL: https://build.opensuse.org/request/show/292526 OBS-URL: https://build.opensuse.org/package/show/games/supertuxkart?expand=0&rev=58
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From 0f56a4f6d344d6db8357e614cca0bd04fe93cf2b Mon Sep 17 00:00:00 2001
|
|
From: Deve <deveee@gmail.com>
|
|
Date: Sun, 22 Feb 2015 10:01:46 +0100
|
|
Subject: [PATCH] Fixed compilation with cmake 3.2
|
|
|
|
---
|
|
CMakeLists.txt | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
Index: SuperTuxKart-0.8.1/CMakeLists.txt
|
|
===================================================================
|
|
--- SuperTuxKart-0.8.1.orig/CMakeLists.txt
|
|
+++ SuperTuxKart-0.8.1/CMakeLists.txt
|
|
@@ -130,6 +130,9 @@ find_package(OpenGL REQUIRED)
|
|
include_directories(${OPENGL_INCLUDE_DIR})
|
|
|
|
if(UNIX AND NOT APPLE)
|
|
+ find_package(X11 REQUIRED)
|
|
+ include_directories(${X11_INCLUDE_DIR})
|
|
+
|
|
find_library(IRRLICHT_XF86VM_LIBRARY Xxf86vm)
|
|
mark_as_advanced(IRRLICHT_XF86VM_LIBRARY)
|
|
else()
|
|
@@ -231,7 +234,8 @@ target_link_libraries(supertuxkart
|
|
${OGGVORBIS_LIBRARIES}
|
|
${IRRLICHT_XF86VM_LIBRARY}
|
|
${OPENAL_LIBRARY}
|
|
- ${OPENGL_LIBRARIES})
|
|
+ ${OPENGL_LIBRARIES}
|
|
+ ${X11_LIBRARIES})
|
|
|
|
if(APPLE)
|
|
# In theory it would be cleaner to let CMake detect the right dependencies. In practice, this means that if a OSX user has
|