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

cmake goes into infinite loop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • Qt Creator 4.2.1
    • Linux Min 18.01 (Ubuntu 16.04), cmake 3.7.2 (I did this with older cmake too)

    Description

      After loading working CMakeLists.txt everything works as expected. Then in my project list I select CMakeLists.txt to make some edits.
      I got this few times that if I have error in CMakeLists.txt and save Qt Creator automatically runs cmake on it. That is fine but one some errors from my best recollection it does into infinite loop. Error, cmake, Error, etc
      There is no "Stop" button. So the only way to do this is to fix the error or comment the offending line and save. Then it stops.

      Here is first error and the last line where it auto restarts and then errors in loop

      CMake Error at CMakeLists.txt:538 (set):
      Syntax error in cmake code at

      /home/rob/projects/apkLib/CMakeLists.txt:539

      when parsing string

      ${CMAKE_CURRENT_SOURCE_DIR/prerm;${CMAKE_CURRENT_SOURCE_DIR}/postrm;${CMAKE_CURRENT_SOURCE_DIR/prerm;${CMAKE_CURRENT_SOURCE_DIR}/postrm

      Invalid character (';') in a variable name:
      'CMAKE_CURRENT_SOURCE_DIR/prerm'

      – Configuring incomplete, errors occurred!
      See also "/home/rob/projects/build-apkLib-Desktop_Qt_5_8_0_GCC_64bit-Debug/CMakeFiles/CMakeOutput.log".
      See also "/home/rob/projects/build-apkLib-Desktop_Qt_5_8_0_GCC_64bit-Debug/CMakeFiles/CMakeError.log".

          • cmake process exited with exit code 1.

      Running "/usr/local/bin/cmake /home/rob/projects/apkLib '-GCodeBlocks - Unix Makefiles'" in /home/rob/projects/build-apkLib-Desktop_Qt_5_8_0_GCC_64bit-Debug.
      – -DCMAKE_BUILD_TYPE=DEBUG
      – Building shared library

      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
              oxoocoffee Robert J. Gebis
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes