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

CMAKE_TOOLCHAIN_FILE parsed only after re-opening project

    XMLWordPrintable

Details

    • Linux/X11

    Description

      I don't know if 'parsed' is the right term but the variables which are set in the file which is specified by CMAKE_TOOLCHAIN_FILE are only set after the project was closed and then re-opened.

      This is the output when the options is specified and applied in the build settings of the project:

      Starting to parse CMake project, using: "-DCMAKE_BUILD_TYPE:STRING=Debug", "-DCMAKE_CXX_COMPILER:STRING=/usr/bin/g++-8", "-DCMAKE_C_COMPILER:STRING=/usr/bin/x86_64-linux-gnu-gcc-8", "-DCMAKE_PREFIX_PATH:STRING=/usr", "-DCMAKE_TOOLCHAIN_FILE:STRING=./conan_paths.cmake", "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON", "-DQT_QMAKE_EXECUTABLE:STRING=/usr/lib/qt5/bin/qmake".
      CMAKE_MODULE_PATH: 
      Configuring done
      

      The CMAKE_MODULE_PATH is not set in this case.

      When I close the project and then re-open it the output looks like this:

      CMake Project was parsed successfully.
      Running "/usr/bin/cmake -E server --pipe=/tmp/cmake-.JjiAxp/socket --experimental" in /tmp/QtCreator-XOBJjV/qtc-cmake-kkCOEBKT.
      Starting to parse CMake project, using: "-DCMAKE_BUILD_TYPE:STRING=Debug", "-DCMAKE_CXX_COMPILER:STRING=/usr/bin/g++-8", "-DCMAKE_C_COMPILER:STRING=/usr/bin/x86_64-linux-gnu-gcc-8", "-DCMAKE_PREFIX_PATH:STRING=/usr", "-DCMAKE_TOOLCHAIN_FILE:STRING=./conan_paths.cmake", "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON", "-DQT_QMAKE_EXECUTABLE:STRING=/usr/lib/qt5/bin/qmake".
      ...
      CMAKE_MODULE_PATH: test;test;/home/sto/projects/software/qtcreator_test;/home/sto/projects/software/qtcreator_test
      Configuring done
      

      This time the value of CMAKE_MODULE_PATH is correctly set.

      Attachments

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

        Activity

          People

            hunger Tobias Hunger
            stmartin81_1 Martin Stolpe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes