aboutsummaryrefslogtreecommitdiff
path: root/cad/freecad/files/patch-cMake_FindPySide2Tools.cmake
blob: 1f13af998d48a1de024695f60dcadfad3e85e130 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- cMake/FindPySide2Tools.cmake.orig	2019-10-22 16:53:35 UTC
+++ cMake/FindPySide2Tools.cmake
@@ -42,7 +42,7 @@ MACRO(PYSIDE_WRAP_UI outfiles)
         # we follow the tool command with in-place sed.
         ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
           COMMAND "${PYSIDE2UICBINARY}" "${infile}" -o "${outfile}"
-          COMMAND sed -i "/^# /d" "${outfile}"
+          COMMAND sed -i \"\" "/^# /d" "${outfile}"
           MAIN_DEPENDENCY "${infile}"
         )
     endif()
@@ -68,8 +68,8 @@ MACRO(PYSIDE_WRAP_RC outfiles)
         # pyside-rcc generates in comments at beginning, which is why
         # we follow the tool command with in-place sed.
         ADD_CUSTOM_COMMAND(OUTPUT "${outfile}"
-          COMMAND "${PYSIDE2RCCBINARY}" "${infile}" ${PY_ATTRIBUTE} -o "${outfile}"
-          COMMAND sed -i "/^# /d" "${outfile}"
+          COMMAND "${PYSIDE2RCCBINARY}" "${infile}" --no-compress --generator python -o "${outfile}"
+          COMMAND sed -i \"\" "/^# /d" "${outfile}"
           MAIN_DEPENDENCY "${infile}"
         )
     endif()