IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

qt_allow_non_utf8_sources

Prevents forcing source files to be treated as UTF-8 for Windows.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

qt_allow_non_utf8_sources

Prevents forcing source files to be treated as UTF-8 for Windows.

The command is defined in the Core component of the Qt6 package, which can be loaded like so:

 
Sélectionnez
find_package(Qt6 REQUIRED COMPONENTS Core)

This command was introduced in Qt 6.0.

Synopsis

 
Sélectionnez
qt_allow_non_utf8_sources(target)

If versionless commands are disabled, use qt6_allow_non_utf8_sources() instead. It supports the same set of arguments as this command.

Description

When building with some compilers for Windows, targets that link to a Qt library will use flags that force the compiler to treat its source files as UTF-8. This is currently implemented for Visual Studio and Intel compilers. You can disable this behavior on a per-target basis by calling qt_allow_non_utf8_sources() and passing the target as the argument.

See Also

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+