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:
a89c56b
)
CMakeLists: Fix c++ build
63/13863/1
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>
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
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
04330c1
..
955f6b7
100644
(file)
--- 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")