Created
August 31, 2013 10:49
-
-
Save slarosa/6397516 to your computer and use it in GitHub Desktop.
fix cmake for default .pap file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt | |
index 020b127..ba59c5a 100644 | |
--- a/python/CMakeLists.txt | |
+++ b/python/CMakeLists.txt | |
@@ -168,10 +168,12 @@ IF(WITH_QSCIAPI) | |
SET(PAP_NAME "pyqgis.pap") | |
ADD_CUSTOM_COMMAND(TARGET qsci-pap-src | |
POST_BUILD | |
- COMMAND ${PYTHON_EXECUTABLE} "${APIS_SRC_DIR}/generate_console_pap.py" "${PAP_NAME}" "${APIS_SRC_DIR}" "${APIS_SRC_DIR}" | |
+ COMMAND ${PYTHON_EXECUTABLE} "${APIS_SRC_DIR}/generate_console_pap.py" "${PAP_NAME}" "${APIS_SRC_DIR}" "${APIS_BIN_DIR}" | |
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" | |
COMMENT "Generating ${PAP_NAME} for console auto-completion (MAY TAKE > 1 MINUTE!)" VERBATIM) | |
+ INSTALL(FILES "${APIS_BIN_DIR}/pyqgis.pap" DESTINATION "${QGIS_DATA_DIR}/python/qsci_apis") | |
+ | |
ENDIF(WITH_QSCIAPI) | |
# Plugin utilities files to copy to staging or install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment