Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23871

Kit's CMake configuration ignored when modifed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.12.0-rc1
    • None

    Description

      Let's say we add the following in Kit's CMake configuration:

      CMAKE_TOOLCHAIN_FILE:STRING=/home/foo/bar/Toolchain-v1.8.0.cmake

       

      Then this is passed to CMake as expected. However, when changing (possibly after a restart of Qt Creator, such that it has written its CMakeList.txt.user file before the change) to e.g.

      CMAKE_TOOLCHAIN_FILE:STRING=/home/foo/bar/Toolchain-v2.0.0.cmake

       

      the new Toolchain file is not picked up. Only after changing the variable in CMakeList.txt.user does Qt Creator pick it up correctly. So it seems that CMakeList.txt.user has priority over the Kit's CMake configuration, which comes as a surprise.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hunger Tobias Hunger
              shentey2 Bernhard Beschow
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes