Add USE_QT4 to allow building with Qt4 when Qt5 also present #850
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm building osgEarth to support the Globe plugin for QGIS. QGIS stable is still recommending Qt4 at this time but I also have Qt5 installed. Currently osgEarth will automatically build for Qt5 for me.
This is my quick solution, adding a
USE_QT4
option. Submitting here in case it is useful for others.Without USE_QT4 it will still build for Qt5 if installed. It won't automatically fallback from trying Qt5 to try Qt4 - arguably that's an improvement.
Happy to change the logic, create a OSGEARTH_USE_QT4? etc. Possibly CMake should fail if OSGEARTH_USE_QT is set and no Qt is found.