I have the following content in my CMakeLists.txt:
project( Matfile ) SET ( CMAKE_CXX_FLAGS \"-std=c++0x\" ) set ( SOURCES \"foo.cpp\" \"bar.cp
Perhaps this would work better:
set_source_files_properties(${SOURCES} PROPERTIES COMPILE_FLAGS "-std=c++0x")