summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2018-05-03 16:50:55 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-05-04 10:17:36 +0200
commitbbe4fb7eff09dbc8bc6a7cfcde5653364e15d564 (patch)
treeded622efb7442a5daa568ef764652292243ff7ac
parenta89c56b7c252cc1bd5f92cebbdb274cc4ae2893f (diff)
CMakeLists: Fix c++ build
On debian, for example, we need to specify C14 compatibility Change-Id: I4fd4d6dbca03d085def61e373617ab5336ebcb0b Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 04330c1f..955f6b79 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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")