Skip to content

Commit

Permalink
add QGIS_INSTALL_SYS_LIBS cmake option
Browse files Browse the repository at this point in the history
  • Loading branch information
gillins authored and nyalldawson committed Feb 2, 2021
1 parent d72a286 commit 54fab97
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Expand Up @@ -911,6 +911,8 @@ if (DISABLE_DEPRECATED)
add_definitions(-DQGIS_DISABLE_DEPRECATED)
endif()

# whether to install required system libs in the output package
set(QGIS_INSTALL_SYS_LIBS TRUE CACHE BOOL "If set to TRUE install all required system libs in the output package")

#############################################################
# Python build dependency
Expand Down Expand Up @@ -1073,7 +1075,10 @@ if (WITH_CORE)
if(NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS)
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
endif()
include(InstallRequiredSystemLibraries)

if(QGIS_INSTALL_SYS_LIBS)
include(InstallRequiredSystemLibraries)
endif()

set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "QGIS")
set(CPACK_PACKAGE_VENDOR "Open Source Geospatial Foundation")
Expand Down

0 comments on commit 54fab97

Please sign in to comment.