We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8b671d commit ff2a53cCopy full SHA for ff2a53c
cmake/PyQtMacros.cmake
@@ -87,8 +87,13 @@ MACRO (PYQT_ADD_RESOURCES outfiles )
87
ENDIF(NOT _ABS_PATH_INDICATOR)
88
SET(_RC_DEPENDS ${_RC_DEPENDS} "${_RC_FILE}")
89
ENDFOREACH(_RC_FILE)
90
+ SET(_name_opt)
91
+ IF(PYQT5_VERSION_STR VERSION_LESS 5.9.1)
92
+ # option removed in PyQt5 >= 5.9.1
93
+ SET(_name_opt -name ${outfile})
94
+ ENDIF()
95
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
- COMMAND ${PYRCC_PROGRAM} -name ${outfile} -o ${outfile} ${infile}
96
+ COMMAND ${PYRCC_PROGRAM} ${_name_opt} -o ${outfile} ${infile}
97
MAIN_DEPENDENCY ${infile}
98
DEPENDS ${_RC_DEPENDS})
99
SET(${outfiles} ${${outfiles}} ${outfile})
0 commit comments