CMakeLists: Fix c++ build 63/13863/1
authorRonan Le Martret <ronan.lemartret@iot.bzh>
Thu, 3 May 2018 14:50:55 +0000 (16:50 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 4 May 2018 08:17:36 +0000 (10:17 +0200)
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 04330c1..955f6b7 100644 (file)
@@ -52,6 +52,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")