Skip to content

Commit

Permalink
fix GRASS7 provider build on MacOS (qgis#41207)
Browse files Browse the repository at this point in the history
* fix GRASS7 provider build on MacOS
  • Loading branch information
PeterPetrik authored Jan 28, 2021
1 parent 0f76655 commit 7105dff
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions src/providers/grass/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,23 @@ macro(ADD_GRASSLIB GRASS_BUILD_VERSION)
set(GRASS_OFF_T_SIZE_DEF "")
endif()

set_target_properties(qgisgrass${GRASS_BUILD_VERSION} PROPERTIES
CLEAN_DIRECT_OUTPUT 1
FRAMEWORK QGIS_MACAPP_FRAMEWORK
FRAMEWORK_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}"
MACOSX_FRAMEWORK_INFO_PLIST "${CMAKE_SOURCE_DIR}/mac/framework.info.plist.in"
MACOSX_FRAMEWORK_SHORT_VERSION_STRING ${COMPLETE_VERSION}
MACOSX_FRAMEWORK_IDENTIFIER org.qgis.qgis3_grass
COMPILE_FLAGS "-DGRASS_BASE=\\\"${GRASS_PREFIX}\\\" ${GRASS_OFF_T_SIZE_DEF}"
)
if(QGIS_MACAPP_FRAMEWORK)
set_target_properties(qgisgrass${GRASS_BUILD_VERSION} PROPERTIES
CLEAN_DIRECT_OUTPUT 1
FRAMEWORK 1
FRAMEWORK_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}"
MACOSX_FRAMEWORK_INFO_PLIST "${CMAKE_SOURCE_DIR}/mac/framework.info.plist.in"
MACOSX_FRAMEWORK_SHORT_VERSION_STRING ${COMPLETE_VERSION}
MACOSX_FRAMEWORK_IDENTIFIER org.qgis.qgis3_grass
COMPILE_FLAGS "-DGRASS_BASE=\\\"${GRASS_PREFIX}\\\" ${GRASS_OFF_T_SIZE_DEF}"
)
else()
set_target_properties(qgisgrass${GRASS_BUILD_VERSION} PROPERTIES
CLEAN_DIRECT_OUTPUT 1
FRAMEWORK 0
COMPILE_FLAGS "-DGRASS_BASE=\\\"${GRASS_PREFIX}\\\" ${GRASS_OFF_T_SIZE_DEF}"
)
endif()

if (APPLE)
set_target_properties(qgisgrass${GRASS_BUILD_VERSION} PROPERTIES
Expand Down

0 comments on commit 7105dff

Please sign in to comment.