Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator does not read build configurations
Forum Updated to NodeBB v4.3 + New Features

Qt Creator does not read build configurations

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 786 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GreenSnake
    wrote on last edited by
    #1

    Hi.
    I am trying to make qt creator use build configurations from a CMakeLists.txt.

    Here it is:

    cmake_minimum_required (VERSION 2.6)
    project(test)
    
    set(CMAKE_CONFIGURATION_TYPES "MyDebug;MyRelease" CACHE STRING "" FORCE)
    
    add_executable(test main.cpp)
    
    

    Opening it via FIle -> Open file or project

    But there is no my specific configurations, only standard ones (Debug, Release, ReleaseWithDebugInfo and Minimal size release).

    What I am doing wrong?
    Or maybe qt creator cannot read configurations from cmake?

    1 Reply Last reply
    0
    • hungerH Offline
      hungerH Offline
      hunger
      wrote on last edited by
      #2

      Creator does not look for CMAKE_CONFIGURATION_TYPES: The flag is used to set which things to build in a multi-configuration generator. AFAICT only the Visual Studio (and the X code one?) generators are multi-configuration, all the others will ignore that value anyway.

      In Creator multi-configuration generators are not supported too well in the first place. E.g. you will see duplicate nodes in the project tree when you enable several configurations at the same time. I think the Ninja generator produces the best results right now.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved