Qt Creator 4 + Cmake + c++14 + OSX bug ?
-
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 ?