summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2017-12-19 15:51:19 +0100
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2018-01-08 22:58:20 +0200
commit417909e93db39aa3481c1b7d640a20970933547a (patch)
tree015af30678ee3ddd7f99b399c5d1163ef2c4c1ba
parentfeab36a9fbc5162150de8c3e26df8585b1430318 (diff)
downloadqtlocation-mapboxgl-417909e93db39aa3481c1b7d640a20970933547a.tar.gz
[qt] Use add_definitions instead of resetting CXXFLAGS
-rw-r--r--platform/qt/qt5.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/qt/qt5.cmake b/platform/qt/qt5.cmake
index 0c9a974b4b..d083c45073 100644
--- a/platform/qt/qt5.cmake
+++ b/platform/qt/qt5.cmake
@@ -8,8 +8,7 @@ find_package(Qt5Sql REQUIRED)
# Qt5 always build OpenGL ES2 which is the compatibility
# mode. Qt5 will take care of translating the desktop
# version of OpenGL to ES2.
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMBGL_USE_GLES2")
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMBGL_USE_GLES2")
+add_definitions("-DMBGL_USE_GLES2")
set(MBGL_QT_CORE_LIBRARIES
PUBLIC Qt5::Core