Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Script from QMAKE_SUBSTITUTES with execute permissions



  • Hi,
    I'm using QMAKE_SUBSTITUTES to create script with paths to dependent libraries.
    Script is created, but after substitution it's permissions are 644.
    How can I change them to ie. 0755?
    Can I do it during install phase?

    PS: From qt src I see that QMAKE_SUBSTITUTES simply open and write to file.
    I found this a viable solution

    unix: system("chmod a+x $$shadowed($$PWD)/script.sh")
    

Log in to reply