Skip to content

Commit 275585c

Browse files
committedNov 16, 2011
fix creatation of python output directory on windows
1 parent 59a5fc6 commit 275585c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎python/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
ADD_SUBDIRECTORY(plugins)
22

3-
43
SET (PYTHON_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/python)
54
SET (QGIS_PYTHON_OUTPUT_DIRECTORY ${PYTHON_OUTPUT_DIRECTORY}/qgis)
65

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

10099
ADD_CUSTOM_TARGET(compile_python_files ALL)
101100

101+
ADD_CUSTOM_COMMAND(TARGET compile_python_files
102+
POST_BUILD
103+
COMMAND ${CMAKE_COMMAND} -E make_directory ${QGIS_PYTHON_OUTPUT_DIRECTORY}
104+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
105+
)
106+
102107
FOREACH(file __init__.py utils.py console.py)
103108
ADD_CUSTOM_COMMAND(TARGET compile_python_files
104109
POST_BUILD

0 commit comments

Comments
 (0)
Please sign in to comment.