Skip to content
Permalink
Browse files

CMake build fix for qt plugins.

The compile flag prevents the Qt plugins from being loaded in the debug
build. The flag is automatically set by the Qt cmake module for release
builds.
  • Loading branch information
640kb authored and nyalldawson committed Mar 28, 2021
1 parent 57f589d commit 9f1cc82446056d286121fb77fabb897aaf9f7f0d
@@ -3,7 +3,6 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/${QGIS_PLUGIN_SUBDIR

add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_NO_DEBUG)
add_definitions(-DQT_SHARED)

include_directories(SYSTEM
@@ -1,5 +1,4 @@
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_NO_DEBUG)
add_definitions(-DQT_SHARED)

find_package(Qt5UiPlugin REQUIRED)
@@ -6,7 +6,6 @@ find_package(OCI REQUIRED)

add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_NO_DEBUG)
add_definitions(-DQT_SHARED)

include_directories(SYSTEM

0 comments on commit 9f1cc82

Please sign in to comment.