File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -319,10 +319,11 @@ FOREACH(module ${PY_MODULES})
319
319
FILE (GLOB_RECURSE PY_FILES "${module} /*.py" )
320
320
INSTALL (FILES ${PY_FILES} DESTINATION "${QGIS_PYTHON_DIR} /${module} " )
321
321
FOREACH (pyfile ${PY_FILES} )
322
+ FILE (RELATIVE_PATH subdir ${CMAKE_CURRENT_SOURCE_DIR} /${module} ${pyfile} )
322
323
ADD_CUSTOM_COMMAND (TARGET py${module}
323
324
POST_BUILD
324
325
COMMAND ${CMAKE_COMMAND} -E make_directory "${QGIS_PYTHON_OUTPUT_DIRECTORY} /${module} "
325
- COMMAND ${CMAKE_COMMAND} -E copy ${pyfile} "${QGIS_PYTHON_OUTPUT_DIRECTORY} /${module} "
326
+ COMMAND ${CMAKE_COMMAND} -E copy ${pyfile} "${QGIS_PYTHON_OUTPUT_DIRECTORY} /${module} / ${subdir} "
326
327
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
327
328
DEPENDS ${PY_FILES}
328
329
)
You can’t perform that action at this time.
0 commit comments