Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Marble
Commits
61bc3805
Commit
61bc3805
authored
Aug 15, 2020
by
Volker Krause
Browse files
Actually make the Qt5Positioning dependency optional
The surrounding code handles this just fine, just the checking code didn't.
parent
fb3454da
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/marble/declarative/CMakeLists.txt
View file @
61bc3805
PROJECT
(
MarbleDeclarativePlugin
)
find_package
(
Qt5
${
REQUIRED_QT_VERSION
}
COMPONENTS Positioning
)
find_package
(
Qt5
${
REQUIRED_QT_VERSION
}
OPTIONAL_
COMPONENTS Positioning
)
if
(
Qt5Positioning_FOUND
)
add_definitions
(
-DHAVE_QT5_POSITIONING
)
endif
(
Qt5Positioning_FOUND
)
...
...
src/plugins/positionprovider/CMakeLists.txt
View file @
61bc3805
...
...
@@ -9,7 +9,7 @@ IF(LIBGPS_FOUND)
ENDIF
(
LIBGPS_FOUND
)
find_package
(
Qt5
${
REQUIRED_QT_VERSION
}
COMPONENTS
OPTIONAL_
COMPONENTS
Positioning
)
marble_set_package_properties
(
Qt5Positioning PROPERTIES DESCRIPTION
"a collection of APIs and frameworks"
)
...
...
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