CMake: Fixed GTK2 detection
authorSteffen Pankratz <kratz00@gmx.de>
Fri, 01 Jan 2016 19:50:19 +0100
changeset 884 748615593b0b
parent 883 30e3a7f2f423
child 885 0e351d80da04
CMake: Fixed GTK2 detection
CMakeLists.txt
--- a/CMakeLists.txt	Fri Jan 01 12:59:25 2016 -0500
+++ b/CMakeLists.txt	Fri Jan 01 19:50:19 2016 +0100
@@ -497,7 +497,7 @@
 IF(UNIX)
 IF(NOT BEOS)
 IF(NOT MACOSX)
-FIND_PACKAGE(GTK2 gtk)
+FIND_PACKAGE(GTK2 COMPONENTS gtk)
 # In order to reduce the GTK2 library dependencies at link time, we only link against 'gtk-x11-2.0'.
 # This is more portable, as the dynamic linker/loader will take care of the other library dependencies at run time.
 SET(LIBGTK_LINK_FLAGS "-lgtk-x11-2.0")