Skip to content

Commit

Permalink
Fix handling of QSci pap file when running directly from build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 30, 2023
1 parent d517b9e commit 8dd4b00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/CMakeLists.txt
Expand Up @@ -351,9 +351,9 @@ if(WITH_QSCIAPI)
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
COMMENT "Generating pap file for console auto-completion" VERBATIM)

add_custom_target(pyqgis-pap ALL DEPENDS ${QGIS_PYTHON_API_FILE} ${QGIS_PYTHON_PAP_FILE})
ADD_QGIS_RESOURCES("${APIS_OUT_DIR}" "python/qsci_apis" DEST_DATA_FILES "PyQGIS.api;PyQGIS.pap")

install(FILES ${QGIS_PYTHON_API_FILE} ${QGIS_PYTHON_PAP_FILE} DESTINATION "${QGIS_DATA_DIR}/python/qsci_apis")
add_custom_target(pyqgis-pap ALL DEPENDS ${QGIS_PYTHON_API_FILE} ${QGIS_PYTHON_PAP_FILE} ${DEST_DATA_FILES})
endif()

if(WITH_CUSTOM_WIDGETS)
Expand Down

0 comments on commit 8dd4b00

Please sign in to comment.