Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien Peillet
otb
Commits
5f25288c
Commit
5f25288c
authored
8 years ago
by
Rashad Kanavath
Browse files
Options
Downloads
Patches
Plain Diff
COMP: change cmake error to warning (if gtk is activated)
parent
ee3a769e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SuperBuild/CMake/External_qt4.cmake
+3
-10
3 additions, 10 deletions
SuperBuild/CMake/External_qt4.cmake
with
3 additions
and
10 deletions
SuperBuild/CMake/External_qt4.cmake
+
3
−
10
View file @
5f25288c
...
...
@@ -11,7 +11,7 @@ SETUP_SUPERBUILD(QT4)
# endif()
option
(
QT4_SB_ENABLE_GTK
"Enable GTK+ style with qt using -gtkstlye. Default is OFF"
OFF
)
set
(
QT4_SB_ENABLE_GTK
OFF CACHE INTERNAL
"Enable GTK+ style with qt using -gtkstlye. Default is OFF"
)
if
(
NOT DEFINED git_protocol
)
set
(
git_protocol
"git"
)
...
...
@@ -34,15 +34,8 @@ if(UNIX)
set
(
QT4_SB_CONFIG
"
${
QT4_SB_CONFIG
}
-no-framework"
)
else
()
#Linux
if
(
QT4_SB_ENABLE_GTK
)
message
(
STATUS
"QT4_SB_ENABLE_GTK is activated. QT4 build includes gtk+ and libfreetype, libpng (dependencies of gtk+ package)"
)
if
(
NOT USE_SYSTEM_PNG OR
NOT USE_SYSTEM_EXPAT OR
NOT USE_SYSTEM_FREETYPE
)
message
(
FATAL_ERROR
"cannot use libpng, expat and freetype from superbuild when QT4_SB_ENABLE_GTK is ON.
eactivate gtk+ theme support in Qt build with 'cmake -DQT4_SB_ENABLE_GTK=OFF'
OR use system libraries for png, expat and freetype with
'cmake -DUSE_SYSTEM_PNG=ON -DUSE_SYSTEM_EXPAT USE_SYSTEM_FREETYPE=ON'"
)
endif
()
message
(
WARNING
"QT4_SB_ENABLE_GTK support is experimental"
)
set
(
QT4_SB_CONFIG
"
${
QT4_SB_CONFIG
}
-sm -xrender -xrandr -gtkstyle"
)
else
()
set
(
QT4_SB_CONFIG
"
${
QT4_SB_CONFIG
}
-no-gtkstyle"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment