Skip to content

Commit

Permalink
fix creatation of python output directory on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 16, 2011
1 parent 59a5fc6 commit 275585c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 275585c

Please sign in to comment.