From: Christian Herdtweck Date: Wed, 11 Nov 2015 17:08:34 +0000 (+0100) Subject: fixed CMakeLists: do not make debug the default, remove compile flags X-Git-Url: http://developer.intra2net.com/git/?p=pingcheck;a=commitdiff_plain;h=7bf01fe3f7f9a577e1ece03ecda239c479e52654 fixed CMakeLists: do not make debug the default, remove compile flags --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f168269..d36b471 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,20 +5,11 @@ set(VERSION_REVISION 1) set(TARGET ${PROJECT_NAME}) # cmake: build options -if("${CMAKE_BUILD_TYPE}" STREQUAL "") - set(CMAKE_BUILD_TYPE Debug) -endif("${CMAKE_BUILD_TYPE}" STREQUAL "") set(CMAKE_COLOR_MAKEFILE ON) cmake_minimum_required(VERSION 2.6 FATAL_ERROR) # compiler: add definitions and arguments to the compiler add_definitions( - -Wall -Wextra -Weffc++ -Wshadow -Wcast-qual -Wconversion -pedantic - -Wabi -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute - -Wno-long-long -Woverloaded-virtual -Wpacked -Wredundant-decls -Wsign-promo - -Wstack-protector -fstack-protector - #-Werror - #-O2 -DVERSION_STRING=${VERSION} -DPROJECT_NAME=\"${PROJECT_NAME}\" -DVERSION_REVISION_STRING=${VERSION_REVISION}