Qt Creator : how to set cmake option -Wno-dev?



  • Qt Creator 4.2.2
    Based on Qt 5.8.0 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
    From revision 991f5eb6a5
    Built on Apr  3 2017 04:08:48
    
    Qt 5.8.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6)) on "xcb" 
    OS: Ubuntu 16.04.2 LTS [linux version 4.4.0-77-generic]
    

    Release 4.0.1 blog states that over CMAKE_TOOLCHAIN_FILE you can set -Wno-dev.

    But which cmake command exactly does this and what is the syntax for?


  • Lifetime Qt Champion

    Hi,

    Which version of Qt Creator are you using now ? IIRC 4.2 has seen a big overhaul of the CMake support so the place to define that variable might have changed.



  • @SGaist I updated the info.


  • Lifetime Qt Champion

    Take a look at the Qt Creator cmake documentation, it's shown there.



  • @SGaist said in Qt Creator : how to set cmake option -Wno-dev?:

    Take a look at the Qt Creator cmake documentation, it's shown there.

    Thank you, but could you point concretely where should I refer to concerning my problem ?


  • Lifetime Qt Champion

    In the build configuration



  • @SGaist said in Qt Creator : how to set cmake option -Wno-dev?:

    In the build configuration

    I was hoping to give me a concrete example, since I already know this and have tried different options, which didnt work ...

    But for all others, there is CMAKE_SUPPRESS_DEVELOPER_WARNINGS option in the Build Settings.


Log in to reply