summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-11-12 22:44:17 (GMT)
committerBrad King <brad.king@kitware.com>2003-11-12 22:44:17 (GMT)
commita65fd59c1364a26164fd27559d3089a211745a42 (patch)
tree2b073342bd63a3dd3cea170135f248eb69a8b4ae /Modules
parentac8bf0d5ac10468cc0b8d23bf300d847326ff431 (diff)
downloadCMake-a65fd59c1364a26164fd27559d3089a211745a42.zip
CMake-a65fd59c1364a26164fd27559d3089a211745a42.tar.gz
CMake-a65fd59c1364a26164fd27559d3089a211745a42.tar.bz2
BUG#299: GTK_gmodule_LIBRARY is optional just like GTK_gthread_LIBRARY.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindGTK.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindGTK.cmake b/Modules/FindGTK.cmake
index a9645e4..bbf58c5 100644
--- a/Modules/FindGTK.cmake
+++ b/Modules/FindGTK.cmake
@@ -5,6 +5,7 @@
# GTK_INCLUDE_DIR - Directories to include to use GTK
# GTK_LIBRARIES - Files to link against to use GTK
# GTK_FOUND - If false, don't try to use GTK
+# GTK_GL_FOUND - If false, don't try to use GTK's GL features
# don't even bother under WIN32
IF(UNIX)
@@ -130,8 +131,11 @@ IF(UNIX)
${GTK_glib_INCLUDE_PATH} )
SET( GTK_LIBRARIES ${GTK_gtk_LIBRARY}
${GTK_gdk_LIBRARY}
- ${GTK_gmodule_LIBRARY}
${GTK_glib_LIBRARY} )
+
+ IF(GTK_gmodule_LIBRARY)
+ SET(GTK_LIBRARIES ${GTK_LIBRARIES} ${GTK_gmodule_LIBRARY})
+ ENDIF(GTK_gmodule_LIBRARY)
IF(GTK_gthread_LIBRARY)
SET(GTK_LIBRARIES ${GTK_LIBRARIES} ${GTK_gthread_LIBRARY})
ENDIF(GTK_gthread_LIBRARY)