blob: bad54b0d1764fbf8f5e6e115064ece5e636d410a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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)
|