File: unforce-cxxflags.patch

package info (click to toggle)
physamp 1.1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,692 kB
  • sloc: cpp: 793; sh: 23; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 520 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Gert Wollny <gw.fossdev@gmail.com>
Date: Wed, 29 Jun 2014 16:52:43 +0200
Subject: Do not override user-provided CXX flags
Forwarded: https://github.com/jydu/physamp/pull/1

--- physamp.orig/CMakeLists.txt
+++ physamp/CMakeLists.txt
@@ -7,7 +7,7 @@
 PROJECT(physamp CXX)
 
 # Compile options
-SET (CMAKE_CXX_FLAGS "-std=c++11 -Wall -Weffc++ -Wshadow -Wconversion")
+add_compile_options(-std=c++11 -Wall -Weffc++ -Wshadow -Wconversion)
 
 IF(NOT CMAKE_BUILD_TYPE)
   SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING