From 381574c77ebb50e8c3960f676d10a6faa8ac0552 Mon Sep 17 00:00:00 2001 From: libing64 Date: Thu, 24 Mar 2016 11:07:34 +0800 Subject: [PATCH] update cmake flag to reduce cpu load --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6921305..f1d085f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,8 @@ cmake_minimum_required(VERSION 2.8.3) project(att_ekf) -set(DCMAKE_BUILD_TYPE "release") -set(CMAKE_CXX_FLAGS "-std=c++11 -march=native") +set(CMAKE_BUILD_TYPE "release") +set(CMAKE_CXX_FLAGS "-DNDEBUG -std=c++11 -march=native -Ofast -Wall -fopenmp") ## Find catkin macros and libraries ## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)