File: use-default-compile-flags.patch

package info (click to toggle)
svxlink 25.05.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,752 kB
  • sloc: cpp: 78,388; tcl: 4,891; ansic: 2,838; sh: 1,594; python: 844; javascript: 430; perl: 382; ruby: 160; makefile: 113; xml: 26
file content (44 lines) | stat: -rw-r--r-- 1,543 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Description: Use default compile flags
 Turn off custom compile flags to make sure 'dpkg-buildflags' propagate
Author: Felix Lechner <felix.lechner@gmail.com>
Forwarded: not-needed
Last-Update: 2014-09-17
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -58,34 +58,6 @@
   ${CMAKE_BINARY_DIR}
 )
 
-# Warnings should be enabled for GCC. Also turning off the NDEBUG flag
-# since that remove asserts.
-if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
-  set(CMAKE_C_FLAGS
-    "${CMAKE_C_FLAGS} -Wall -Wstrict-prototypes -Wpointer-arith")
-  set(CMAKE_C_FLAGS_RELEASE "-O3")
-  set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
-
-  set(CMAKE_CXX_FLAGS
-    "${CMAKE_CXX_FLAGS} -Wall -Wpointer-arith")
-  set(CMAKE_CXX_FLAGS_RELEASE "-O3")
-  set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
-
-  option(USE_GPROF "Enable profiling" OFF)
-  if(USE_GPROF)
-    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pg")
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg")
-  endif(USE_GPROF)
-endif()
-
-# Set the default build type to Release
-if(NOT CMAKE_BUILD_TYPE)
-  set(CMAKE_BUILD_TYPE "Release" CACHE STRING
-      "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel."
-      FORCE)
-endif(NOT CMAKE_BUILD_TYPE)
-
-
 ##############################################################################
 # Install targets properties setup
 ##############################################################################