Skip to content
Snippets Groups Projects
Commit 4b2f0bc0 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

SuperBuild: include gtk+ libs in Qt build only if asked explicitly

parent 3e9b653e
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,9 @@ SETUP_SUPERBUILD(QT4) ...@@ -10,6 +10,9 @@ SETUP_SUPERBUILD(QT4)
# message(STATUS " SuperBuild may fail to compile Qt4. If so, you should install it via package manager.") # message(STATUS " SuperBuild may fail to compile Qt4. If so, you should install it via package manager.")
# endif() # endif()
option(QT4_SB_ENABLE_GTK "Enable GTK+ stlye with qt using -gtkstlye. Default is OFF" OFF)
if(NOT DEFINED git_protocol) if(NOT DEFINED git_protocol)
set(git_protocol "git") set(git_protocol "git")
endif() endif()
...@@ -30,8 +33,14 @@ if(UNIX) ...@@ -30,8 +33,14 @@ if(UNIX)
if(APPLE) if(APPLE)
set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -no-framework") set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -no-framework")
else() #Linux else() #Linux
set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -sm -xrender -xrandr -gtkstyle") if(QT4_SB_ENABLE_GTK)
message(STATUS "QT4_SB_ENABLE_GTK is activated. QT4 build includes gtk+ and libfreetype, libpng (dependencies of gtk+ package)")
set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -sm -xrender -xrandr -gtkstyle")
else()
set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -no-gtkstyle")
endif()
endif() endif()
#common for all unix
set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -no-nis -no-javascript-jit -v") set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -no-nis -no-javascript-jit -v")
elseif(MSVC) elseif(MSVC)
set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -mp") set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -mp")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment