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

cannot turn off cmake option if the option is broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.5.0-rc1
    • Qt Creator 4.4.0

    Description

      in cmake, when we create an option like so

      option(ENABLE_EXPERIMENTAL_FEATURE "Enable experimental feature" OFF)
      

      it creates a check box in the project settings.

      And if we go into projects settings toggle that checkbox and click on 'Apply Configuration Changes' , but turns out that we made a silly mistake in our cmake (failing during the generation phase), we won't be able to un-toggle that checkbox.  Clicking on 'Apply Configuration Changes' does nothing. You will be literally stuck there. Closing and Reopening the project won't fix it. nuking the build location entirely won't fix it.

      I finally discovered that closing QtCreator and then deleting CMakeLists.txt.user from the source folder, which is generated by QtCreator, is the only way to get us out of this predicament.

      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
              mchiasson Mathieu-Andre Chiasson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes