CMake: GTK+ isn't required, don't fail if it's missing.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 15 Jul 2015 18:44:04 -0400
changeset 882 2ed29bdb4561
parent 881 1fa99479169e
child 883 30e3a7f2f423
CMake: GTK+ isn't required, don't fail if it's missing.
CMakeLists.txt
--- a/CMakeLists.txt	Fri May 01 13:56:40 2015 +0200
+++ b/CMakeLists.txt	Wed Jul 15 18:44:04 2015 -0400
@@ -497,7 +497,7 @@
 IF(UNIX)
 IF(NOT BEOS)
 IF(NOT MACOSX)
-FIND_PACKAGE(GTK2 REQUIRED gtk)
+FIND_PACKAGE(GTK2 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")