Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator 4 + Cmake + c++14 + OSX bug ?

Qt Creator 4 + Cmake + c++14 + OSX bug ?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qtcreator 4.0.0cmakec++14osx
1 Posts 1 Posters 1.1k 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.
  • N Offline
    N Offline
    Nuno Nunes
    wrote on 27 May 2016, 12:28 last edited by Nuno Nunes
    #1

    I have a c++14 project that uses Cmake in OSX and I use QtCreator 4.0.0.

    In Cmake until now I used the following code to specify the c++14 standard

    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -stdlib=libc++")

    With Qt 5.7 I cannot use "-std=c++14" because of an problem with Cmake (qt 5.7 defines allready "-std=c++11" that is incompatible with previous code)

    So now (with Qt 5.7) I must use the following code in Cmake:
    set (CMAKE_CXX_STANDARD 14)

    It works Ok, so no problem here. The problem is with this last code the QtCreator editor (with clang code model) does not identifies the model code as c++14 and gives errors if I use std::make_unique (for example); Wen I used "-std=c++14" the editor gives no error.

    Is this a bug in QtCreator or there is another way to define c++14 code model in QtCreator ?

    1 Reply Last reply
    0

    1/1

    27 May 2016, 12:28

    • Login

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