Skip to content

Commit

Permalink
python2/CMakeLists.txt: make SWIG doc interfaces depend on wrapper gen
Browse files Browse the repository at this point in the history
Previously we used SWIG_MODULE_<name>_REAL_NAME to have the doc interfaces
depend on. However that target is preceeded by the SWIG generation in our case
gen_python2-mraa_mraa2PYTHON_wrap. Typically this is hidden because a parralel
build has so many other deps this can be hidden but this is the correct path.

Fixes eclipse#911

Signed-off-by: Brendan Le Foll <[email protected]>
  • Loading branch information
arfoll committed Aug 23, 2018
1 parent af5ebb4 commit 236c63c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/python2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ target_include_directories(${SWIG_MODULE_python2-mraa_REAL_NAME}

if (DOXYGEN_FOUND AND PYTHON2_EXECUTABLE)
foreach (_file ${DOCCLASSES})
add_dependencies (${SWIG_MODULE_python2-mraa_REAL_NAME} ${_file}class_doc_i)
add_dependencies (gen_python2-mraa_mraa2PYTHON_wrap ${_file}class_doc_i)
endforeach ()
add_dependencies (${SWIG_MODULE_python2-mraa_REAL_NAME} common_hpp_doc_i)
add_dependencies (gen_python2-mraa_mraa2PYTHON_wrap common_hpp_doc_i)
endif ()

set_target_properties (${SWIG_MODULE_python2-mraa_REAL_NAME} PROPERTIES
Expand Down

0 comments on commit 236c63c

Please sign in to comment.