Skip to content

Commit

Permalink
Merge pull request #6892 from geographika/doxygen
Browse files Browse the repository at this point in the history
Output doxygen comments in Python MapScript module
  • Loading branch information
rouault committed May 27, 2023
2 parents 42e6acf + fcd7f7a commit 67ddf33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mapscript/python/CMakeLists.txt
Expand Up @@ -10,8 +10,9 @@ include_directories(${PROJECT_SOURCE_DIR}/mapscript/python)

set(SwigFile ${PROJECT_SOURCE_DIR}/mapscript/mapscript.i)

# add annotations to py file output - requires >= SWIG 4.1
# add and comments annotations to py file output - requires >= SWIG 4.1
if (WITH_PYMAPSCRIPT_ANNOTATIONS AND ${Python_VERSION_MAJOR} GREATER_EQUAL 3)
set_property(SOURCE ${SwigFile} APPEND PROPERTY SWIG_FLAGS -doxygen)
if (${Python_VERSION_MINOR} GREATER_EQUAL 6)
set_property(SOURCE ${SwigFile} APPEND PROPERTY SWIG_FLAGS -features python:annotations=c)
else ()
Expand Down

0 comments on commit 67ddf33

Please sign in to comment.