[CMake] enabling c++11 features?
Benjamin Eikel
cmake at eikel.org
Thu Jan 17 04:35:21 EST 2013
Am Donnerstag, 17. Januar 2013, 10:30:59 schrieb Witold E Wolski:
> I would like to use the override keyword
> I added to my root CMakeLists.txt file
> SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") (I am using gcc 4.6)
>
> However I am still getting an error i.e:
>
> error: ‘override’ does not name a type
Explicit virtual overrides are not availabe in GCC 4.6.
http://gcc.gnu.org/projects/cxx0x.html
>
> for the following declaration
>
> void getRT(std::vector<double> & rt) const override;
>
>
>
> regards
More information about the CMake
mailing list