Skip to content

Commit

Permalink
CMake: correct non-POSIX friendly 'sed-i' arg in FindPySide2Tools.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
luzpaz committed Mar 6, 2021
1 parent 41de6c3 commit b28ec25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cMake/FindPySide2Tools.cmake
Expand Up @@ -58,7 +58,7 @@ MACRO(PYSIDE_WRAP_UI outfiles)
# we follow the tool command with in-place sed.
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND "${PYSIDE2UICBINARY}" ${UICOPTIONS} "${infile}" -o "${outfile}"
COMMAND sed -i "/^# /d" "${outfile}"
COMMAND sed "/^# /d" "${outfile}" >"${outfile}.tmp" && mv "${outfile}.tmp" "${outfile}"
MAIN_DEPENDENCY "${infile}"
)
endif()
Expand All @@ -85,7 +85,7 @@ MACRO(PYSIDE_WRAP_RC outfiles)
# we follow the tool command with in-place sed.
ADD_CUSTOM_COMMAND(OUTPUT "${outfile}"
COMMAND "${PYSIDE2RCCBINARY}" ${RCCOPTIONS} "${infile}" ${PY_ATTRIBUTE} -o "${outfile}"
COMMAND sed -i "/^# /d" "${outfile}"
COMMAND sed "/^# /d" "${outfile}" >"${outfile}.tmp" && mv "${outfile}.tmp" "${outfile}"
MAIN_DEPENDENCY "${infile}"
)
endif()
Expand Down

0 comments on commit b28ec25

Please sign in to comment.