Code Review
/
src
/
app-framework-binder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
5b26086
)
CMakeLists: Fix c++ build
57/13857/3
author
Ronan Le Martret
<ronan.lemartret@iot.bzh>
Thu, 3 May 2018 14:50:55 +0000
(16:50 +0200)
committer
José 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
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
2efee1d
..
f60cace
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-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")