From 2f47684220a5d398767ee35e0c2c949b27839197 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 14 Apr 2017 12:09:23 +0200 Subject: Adding C++ compile flags option by default. Change-Id: Ia0fe92fa08ed56255028a2a572be076a2a0e8665 Signed-off-by: Romain Forlot --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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] -- cgit 1.2.3-korg