Skip to content

Commit

Permalink
CMake build fix for qt plugins.
Browse files Browse the repository at this point in the history
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 9f1cc82
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion external/qspatialite/CMakeLists.txt
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/customwidgets/CMakeLists.txt
@@ -1,5 +1,4 @@
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_NO_DEBUG)
add_definitions(-DQT_SHARED)

find_package(Qt5UiPlugin REQUIRED)
Expand Down
1 change: 0 additions & 1 deletion src/providers/oracle/ocispatial/CMakeLists.txt
Expand Up @@ -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
Expand Down

0 comments on commit 9f1cc82

Please sign in to comment.