He Petric, On Thu, Aug 4, 2016 at 11:56 PM, Petric Frank <[email protected]> wrote: > Hello, > > in QtCreator you can configure environment variables in the project > settings.
... and in the Kit settings, too. > But i want them to be defined in the qmake file. Is that possible ? You can definitely have platform specific sections in the qmake files. I am not sure whether you can export environment variables from there, but you can definitely set qmake variables based on platform and use those in you build system and export them to your compiler. We do that in the creator build system. > Reason: Working on different platforms (i.e. Linux, Windows, ...) and > machines i have to remove the *.pro.user file because of a version miswmatch > of QtCreator. Then the setting of QtCreator is lost. You can not really check the .user* files into version control systems. That is right. You should not need to do that: Creator should keep your old .user files around. > Any hints (other than a fixed setting before starting QtCreator) ? Maybe setting the environment variables in the kit works for your use case? > QtCreator versinos are (currently) 3.6 and 4.0 At least for 4.0 that works, but I am not 100% sure that this was implemented in 3.6 already. Best Regards, Tobias _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
