File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -328,14 +328,13 @@ FOREACH(module ${PY_MODULES})
328328 ADD_CUSTOM_TARGET (py${module} ALL )
329329 ADD_DEPENDENCIES (py${module} python_module_qgis__${module} )
330330
331-
332331 # concat auto_additions/*.py in _module_/__init__.py
333332 FILE (GLOB PY_FILES_AUTO_ADDITIONS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${module} /auto_additions/*.py)
333+ CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR} /${module} /__init__.py.in ${QGIS_PYTHON_OUTPUT_DIRECTORY} /${module} /__init__.py COPYONLY )
334334 FOREACH (pyfile ${PY_FILES_AUTO_ADDITIONS} )
335- file (READ ${IN_FILE } CONTENTS)
336- file (APPEND ${OUT_FILE} "${CONTENTS} " )
335+ file (READ ${pyfile } CONTENTS)
336+ file (APPEND ${QGIS_PYTHON_OUTPUT_DIRECTORY} / ${module} /__init__.py "${CONTENTS} " )
337337 ENDFOREACH (pyfile)
338- configure_file (somefile.sql.in somefile.sql COPYONLY )
339338
340339 FILE (GLOB PY_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${module} /*.py)
341340 INSTALL (FILES ${PY_FILES} DESTINATION "${QGIS_PYTHON_DIR} /${module} " )
You can’t perform that action at this time.
0 commit comments