From: Michael Andres Date: Mon, 24 Sep 2007 09:31:43 +0000 (+0000) Subject: Use -Wall -Woverloaded-virtual -fstack-protector X-Git-Tag: BASE-SuSE-Linux-10_3-Branch^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93274b1a8b8e2599853bd0e46b6ac42919d49711;p=platform%2Fupstream%2Fzypper.git Use -Wall -Woverloaded-virtual -fstack-protector --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3cd10cc..c56e42a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,9 @@ INCLUDE( ${CMAKE_SOURCE_DIR}/VERSION.cmake ) SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" ) ADD_DEFINITIONS( -DVERSION=\\\"${VERSION}\\\" ) +SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2 -Wall -Woverloaded-virtual -fstack-protector" ) +SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O2 -Wall -fstack-protector" ) + # usr INSTALL_PREFIX IF( DEFINED CMAKE_INSTALL_PREFIX )