From c3535345a31ed48aebcdc148def34978060048f0 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Tue, 22 Feb 2011 15:47:51 +0100 Subject: [PATCH] Project name #define is sent to source code in compile time --- CMakeLists.txt | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ddab70..877ebe6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,9 +15,12 @@ set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) # enable or disable the full compiler output set( CMAKE_VERBOSE_MAKEFILE OFF ) +set( CMAKE_BUILD_TYPE Debug ) + # add definitions, compiler switches, etc. add_definitions( -Werror -Wall -Wextra -Weffc++ -O2 -DVERSION_STRING=${VERSION_STRING} + -DPROJECT_NAME=\"${PROJECT_NAME}\" ) # more build in the source folder -- 1.7.1