diff options
author | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2018-05-03 16:50:55 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-05-04 10:17:36 +0200 |
commit | bbe4fb7eff09dbc8bc6a7cfcde5653364e15d564 (patch) | |
tree | ded622efb7442a5daa568ef764652292243ff7ac /CMakeLists.txt | |
parent | a89c56b7c252cc1bd5f92cebbdb274cc4ae2893f (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>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
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") |