Skip to content
Permalink
Browse files
fix creatation of python output directory on windows
  • Loading branch information
jef-n committed Nov 16, 2011
1 parent 59a5fc6 commit 275585cf838a9e7d35495c0d79f3fd33ef3364b2
Showing with 6 additions and 1 deletion.
  1. +6 −1 python/CMakeLists.txt
@@ -1,6 +1,5 @@
ADD_SUBDIRECTORY(plugins)


SET (PYTHON_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/python)
SET (QGIS_PYTHON_OUTPUT_DIRECTORY ${PYTHON_OUTPUT_DIRECTORY}/qgis)

@@ -99,6 +98,12 @@ SET (QGIS_PYTHON_DIR ${PYTHON_SITE_PACKAGES_DIR}/qgis)

ADD_CUSTOM_TARGET(compile_python_files ALL)

ADD_CUSTOM_COMMAND(TARGET compile_python_files
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory ${QGIS_PYTHON_OUTPUT_DIRECTORY}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

FOREACH(file __init__.py utils.py console.py)
ADD_CUSTOM_COMMAND(TARGET compile_python_files
POST_BUILD

0 comments on commit 275585c

Please sign in to comment.