diff options
author | Kai Koehne <kai.koehne@qt.io> | 2016-05-03 09:52:29 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2016-05-03 14:31:39 +0000 |
commit | 49e36525ce1ef94535335895131a368a3e87e341 (patch) | |
tree | 1e4045f5b59bc4363580458c2499665024878a3e | |
parent | 0ba2071f906928a54822e4d115fbf9355f4197df (diff) |
Skip build for missing opengl dependencies
Do not error out if opengl is missing, but rather skip the build. This
allows people to compile qt-everywhere packages with e.g. -no-opengl .
Change-Id: I08212b53e37931347b6f6bea5736f99111bcdc92
Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
-rw-r--r-- | qtdatavis3d.pro | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/qtdatavis3d.pro b/qtdatavis3d.pro index ab70c061..5284069b 100644 --- a/qtdatavis3d.pro +++ b/qtdatavis3d.pro @@ -1,13 +1,9 @@ requires(qtHaveModule(widgets)) -load(qt_parts) - # We need opengl, minimum es2 or desktop -!contains(QT_CONFIG, opengl) { - error(QtDataVisualization requires OpenGL!) -} -contains(QT_CONFIG, opengles1) { - error(QtDataVisualization does not support OpenGL ES 1!) -} +requires(contains(QT_CONFIG, opengl)) +requires(!contains(QT_CONFIG, opengles1)) + +load(qt_parts) OTHER_FILES += README dist/* .qmake.conf |