Skip to content

Commit

Permalink
Output doxygen comments in Python MapScript module
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika authored and github-actions[bot] committed May 27, 2023
1 parent c9b212d commit 91fabbc
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 91fabbc

Please sign in to comment.