From 6c8c75b090309477d0cdf53bae9d1f977b28c203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Mon, 5 Oct 2015 07:12:45 +0000 Subject: [PATCH] add Debug option git-svn-id: svn://db.shs.com.ru/pip@158 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ac891c79..8a2966fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,5 @@ project(pip) cmake_minimum_required(VERSION 2.6) -#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g3") include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) include(CheckFunctionExists) @@ -37,9 +36,12 @@ option(USB "USB support" OFF) option(STL "Building with STL containers" OFF) option(CRYPT "Crypt support" OFF) option(LIB "System install" ON) +option(DEBUG "Build with -g3" OFF) set(CMAKE_BUILD_TYPE "Release") set(LIBS) - +if (DEBUG) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g3") +endif () # Sources set(PIP_FOLDERS "." "core" "containers" "thread" "system" "io" "console" "math" "code" "geo")