Skip to content
Permalink
Browse files

Merge pull request #33876 from kadas-albireo/sipoptinstall

Make it configurable whether to install the sip source files
  • Loading branch information
manisandro committed Jan 17, 2020
2 parents 61b7020 + 3b9ccf3 commit acb3d3c67178488534adf1f75402c6c6df27a02b
Showing with 6 additions and 3 deletions.
  1. +1 −0 CMakeLists.txt
  2. +5 −3 python/CMakeLists.txt
@@ -141,6 +141,7 @@ IF(WITH_CORE)
# as otherwise user has to use PYTHONPATH environment variable to add
# QGIS bindings to package search path
SET (BINDINGS_GLOBAL_INSTALL FALSE CACHE BOOL "Install bindings to global python directory? (might need root)")
SET (SIP_GLOBAL_INSTALL FALSE CACHE BOOL "Install sip source files to system sip directory? (might need root)")
SET (WITH_STAGED_PLUGINS TRUE CACHE BOOL "Stage-install core Python plugins to run from build directory? (utilities and console are always staged)")
SET (WITH_PY_COMPILE FALSE CACHE BOOL "Determines whether Python modules in staged or installed locations are byte-compiled")
# concatenate QScintilla2 API files
@@ -407,7 +407,9 @@ FOREACH(module ${PY_MODULES})
PY_COMPILE(py${module} "${QGIS_PYTHON_OUTPUT_DIRECTORY}/${module}")

# install source sip files
FILE(GLOB sip_files ${CMAKE_CURRENT_BINARY_DIR}/${module}/*.sip)
INSTALL(FILES ${sip_files} DESTINATION ${SIP_DEFAULT_SIP_DIR}/qgis/${module})
INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${module}/auto_generated DESTINATION ${SIP_DEFAULT_SIP_DIR}/qgis/${module})
IF(SIP_GLOBAL_INSTALL)
FILE(GLOB sip_files ${CMAKE_CURRENT_BINARY_DIR}/${module}/*.sip)
INSTALL(FILES ${sip_files} DESTINATION ${SIP_DEFAULT_SIP_DIR}/qgis/${module})
INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${module}/auto_generated DESTINATION ${SIP_DEFAULT_SIP_DIR}/qgis/${module})
ENDIF(SIP_GLOBAL_INSTALL)
ENDFOREACH(module)

0 comments on commit acb3d3c

Please sign in to comment.
You can’t perform that action at this time.