Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
4b2f0bc0
Commit
4b2f0bc0
authored
Jul 13, 2016
by
Rashad Kanavath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SuperBuild: include gtk+ libs in Qt build only if asked explicitly
parent
3e9b653e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
SuperBuild/CMake/External_qt4.cmake
SuperBuild/CMake/External_qt4.cmake
+10
-1
No files found.
SuperBuild/CMake/External_qt4.cmake
View file @
4b2f0bc0
...
...
@@ -10,6 +10,9 @@ SETUP_SUPERBUILD(QT4)
# message(STATUS " SuperBuild may fail to compile Qt4. If so, you should install it via package manager.")
# endif()
option
(
QT4_SB_ENABLE_GTK
"Enable GTK+ stlye with qt using -gtkstlye. Default is OFF"
OFF
)
if
(
NOT DEFINED git_protocol
)
set
(
git_protocol
"git"
)
endif
()
...
...
@@ -30,8 +33,14 @@ if(UNIX)
if
(
APPLE
)
set
(
QT4_SB_CONFIG
"
${
QT4_SB_CONFIG
}
-no-framework"
)
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
()
#common for all unix
set
(
QT4_SB_CONFIG
"
${
QT4_SB_CONFIG
}
-no-nis -no-javascript-jit -v"
)
elseif
(
MSVC
)
set
(
QT4_SB_CONFIG
"
${
QT4_SB_CONFIG
}
-mp"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment