aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-04-14 12:09:23 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-04-14 12:09:23 +0200
commit2f47684220a5d398767ee35e0c2c949b27839197 (patch)
treea04ab2d445587e44b3fe693da9ddff1745eb865e /CMakeLists.txt
parent39c3509aa25259db4f75805a1d1da3ab78ce6c88 (diff)
Adding C++ compile flags option by default.
Change-Id: Ia0fe92fa08ed56255028a2a572be076a2a0e8665 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b33faff..ec91089 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -200,6 +200,12 @@ setc(CMAKE_C_FLAGS_PROFILING "-g -O2 -pg -Wp,-U_FORTIFY_SOURCE")
setc(CMAKE_C_FLAGS_DEBUG "-g -O2 -ggdb -Wp,-U_FORTIFY_SOURCE")
setc(CMAKE_C_FLAGS_RELEASE "-O2")
setc(CMAKE_C_FLAGS_CCOV "-g -O2 --coverage")
+
+set(CMAKE_CXX_FLAGS_PROFILING "-g -O0 -std=c++11 -pg -Wp,-U_FORTIFY_SOURCE")
+set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -std=c++11 -ggdb -Wp,-U_FORTIFY_SOURCE")
+set(CMAKE_CXX_FLAGS_RELEASE "-g -O2 -std=c++11")
+set(CMAKE_CXX_FLAGS_CCOV "-g -O2 -std=c++11 --coverage")
+
setc(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/Install")
# (BUG!!!) as PKG_CONFIG_PATH does not work [should be en env variable]