[qt] Use add_definitions instead of resetting CXXFLAGS

This commit is contained in:
Thiago Marcos P. Santos
2017-12-19 15:51:19 +01:00
parent feab36a9fb
commit 417909e93d

View File

@@ -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