Qt Creator: won't work with different cmake versions



  • 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]
    

    Lets say I have two cmake versions installed : once in /usr/local/bin and one in /usr/bin.

    In my Tools->Options->Build & Run->CMake I see Auto-detected :
    - System CMake at /usr/local/bin/cmake (Default)
    - System CMake at /usr/bin/cmake
    ( In the $PATH /usr/local/bin is also before /usr/bin ).

    However, whenever I "Run CMake", qt creator always go for the /usr/bin/cmake, i.e. that is not for the default one (The checkbox Auto-run is also deselected for the /usr/bin). Did I miss something in my configuration ?


  • Moderators

    @QtBSt Which CMake is set in your kit? See "Kits/CMake Tool".



  • @jsulm said in Qt Creator: won't work with different cmake versions:

    @QtBSt Which CMake is set in your kit? See "Kits/CMake Tool".

    It is the one I wrote above :
    - System CMake at /usr/local/bin/cmake (Default)


  • Lifetime Qt Champion

    Hi,

    Did you do the change on an already configured project ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.