[qt] Use add_definitions instead of resetting CXXFLAGS
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user