You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-strategy/wargus/files/wargus-2.2.6-underlinking.p...

29 lines
656 B

From: Julian Ospald <hasufell@gentoo.org>
Date: Fri Jun 1 20:15:57 UTC 2012
Subject: build system
fix underlinking
see: https://bugs.launchpad.net/wargus/+bug/1007586
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -109,6 +109,7 @@
endif()
if(NOT WIN32)
+ find_package(X11 REQUIRED)
find_package(GTK2 REQUIRED gtk)
endif()
@@ -149,8 +150,8 @@
# Platform definitions
if(NOT WIN32)
- include_directories(${GTK2_INCLUDE_DIRS})
- set(wargus_LIBS ${wargus_LIBS} ${GTK2_LIBRARIES})
+ include_directories(${X11_INCLUDE_DIR} ${GTK2_INCLUDE_DIRS})
+ set(wargus_LIBS ${wargus_LIBS} ${X11_X11_LIB} ${GTK2_LIBRARIES})
endif()
if (NOT WIN32 AND NOT MAEMO)