CMakeLists: Fix c++ build 57/13857/3
authorRonan Le Martret <ronan.lemartret@iot.bzh>
Thu, 3 May 2018 14:50:55 +0000 (16:50 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 3 May 2018 14:59:47 +0000 (14:59 +0000)
On debian, for example, we need to specify C14 compatibility

Change-Id: I4fd4d6dbca03d085def61e373617ab5336ebcb0b
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
CMakeLists.txt

index 2efee1d..f60cace 100644 (file)
@@ -57,6 +57,7 @@ add_compile_options(-Werror=implicit-function-declaration)
 add_compile_options(-ffunction-sections -fdata-sections)
 add_compile_options(-fPIC)
 add_compile_options(-g)
+set (CMAKE_CXX_STANDARD 14)
 
 set(CMAKE_C_FLAGS_PROFILING    "-g -O2 -pg -Wp,-U_FORTIFY_SOURCE")
 set(CMAKE_C_FLAGS_DEBUG        "-g -ggdb -Wp,-U_FORTIFY_SOURCE")