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

Specifying Visual Studio's 'Conformance mode' in a qmake .pro file?



  • I am currently using

    QMAKE_CXXFLAGS += /permissive-
    

    in my .pro file so that my code compiles using VS2019's /permissive- option. In the generated Visual Studio project, this compile flag then apparently gets added to the 'Additional Options':

    additional_options.PNG
    However, I was expecting this option elsewhere, namely under 'Language / Conformance mode':

    conformance_mode.PNG

    Is there a way to specify in my .pro file that I want to set 'Conformance mode' to /permissive-? Or is this not supported with qmake and is the only way around to use QMAKE_CXXFLAGS like I do now?


  • Lifetime Qt Champion

    You have to set it by your own.


Log in to reply