It so happened that this is a known issue with CMake / Qt 5.7 . Apparently, since CMake 3.1, the correct way is to determine which C ++ standard to use in CMake, with
SET(CMAKE_CXX_STANDARD 14)
As in Qt 5.7, using any method other than CMAKE_CXX_STANDARD will result in C ++ 14 errors, such as the one mentioned in the question. With this method, all errors for my assembly were removed.
Anecdote, the error report is quite interesting, since initially this problem was considered an issue blocker, then it was reduced to a known problem and, in the end (apparently) it was even cleared of the list of releases .
source share