I want to use a timer as advised in How can I measure the execution time of one thread? However, I receive the error message
In file included from /usr/include/c++/5/thread:35:0,
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^
The CMake output of
message("${CMAKE_CXX_FLAGS}" and "${CMAKE_C_FLAGS}")
is
-std=c++11 -fPIC -Wall;and; -std=c++11
What is wrong?