Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
CMake: GTK2 optimizations
  • Loading branch information
kratz00 committed Jan 1, 2016
1 parent 07eab2f commit fd9f5a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Expand Up @@ -498,12 +498,12 @@ IF(UNIX)
IF(NOT BEOS)
IF(NOT MACOSX)
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")
IF(NOT GTK2_FOUND)
MESSAGE(STATUS "Can't find GTK+v2 headers/libraries. Can't build GTK+ GUI.")
ELSE(NOT GTK2_FOUND)
# 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")
OPTION(MOJOSETUP_GUI_GTKPLUS2 "Enable GTK+ 2.0 GUI" TRUE)
IF(MOJOSETUP_GUI_GTKPLUS2)
ADD_DEFINITIONS(-DSUPPORT_GUI_GTKPLUS2=1)
Expand Down

0 comments on commit fd9f5a9

Please sign in to comment.