Skip to content

Commit

Permalink
ci: temporary workaround to sip ABI < 13.9 with sip >= 6.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
t0b3 committed Dec 24, 2024
1 parent b6ef834 commit f168a4b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/SIPMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ MACRO(GENERATE_SIP_PYTHON_MODULE_CODE MODULE_NAME MODULE_SIP SIP_FILES CPP_FILES
SET(_out_sip_file "${CMAKE_CURRENT_BINARY_DIR}/${_sip_file_relpath}.sip")
CONFIGURE_FILE(${_sip_file} ${_out_sip_file})

# Deprecated annotation supports message only since version 6.9.0
if(${SIP_VERSION_STR} VERSION_LESS 6.9.0)
# Deprecated annotation supports message only since ABI >= 12.16 or ABI >= 13.9
# TODO: evaluate ABI version once it's available from upstream
# i.e. `if(${SIP_ABI_VERSION_STR} VERSION_LESS 13.9)`
if(TRUE)
file(READ ${_out_sip_file} _content)
string(REGEX REPLACE "([/,])Deprecated=\"[^\"]*\"([/,])" "\\1Deprecated\\2" _content "${_content}")
file(GENERATE OUTPUT ${_out_sip_file} CONTENT "${_content}")
Expand Down

0 comments on commit f168a4b

Please sign in to comment.