Skip to content
Permalink
Browse files
allow to build qgis_app statically (#43846)
  • Loading branch information
3nids committed Jun 22, 2021
1 parent ea8d0d6 commit 520732a88b8102c0d4184408e52c1ae1031d6b99
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/CMakeLists.txt
@@ -464,7 +464,7 @@ endif()

#############
if (ANDROID)
add_library(${QGIS_APP_NAME} SHARED ${QGIS_APPMAIN_SRCS})
add_library(${QGIS_APP_NAME} ${LIBRARY_TYPE} ${QGIS_APPMAIN_SRCS})

# require c++17
target_compile_features(${QGIS_APP_NAME} PRIVATE cxx_std_17)
@@ -477,7 +477,7 @@ endif()

# Putting IMAGE_RCC_SRCS into qgis_app lib is causing problems when the lib is
# loaded (by plugin for example) in test unit (qgis_layoutpicturetest).
add_library(qgis_app SHARED ${QGIS_APP_SRCS})
add_library(qgis_app ${LIBRARY_TYPE} ${QGIS_APP_SRCS})

# require c++17
target_compile_features(qgis_app PRIVATE cxx_std_17)

0 comments on commit 520732a

Please sign in to comment.