File: honor-CPP%2BCXXFLAGS.patch

package info (click to toggle)
tlsh 4.12.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,952 kB
  • sloc: cpp: 9,132; python: 1,603; java: 1,214; sh: 703; javascript: 467; ansic: 54; makefile: 27; sed: 9
file content (18 lines) | stat: -rw-r--r-- 602 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Make sure Debian's presets to CPPFLAGS and CXXFLAGS get applied
Author: Sven Geuer <sge@debian.org>
Forwarded: not-needed
Last-Update: 2025-11-25
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -137,6 +137,9 @@
     include_directories(Windows)
 endif()
 
+# override above *FLAGS configuration
+set(CMAKE_CPP_FLAGS ${CPPFLAGS})
+set(CMAKE_CXX_FLAGS ${CXXFLAGS})
 
 # from https://stackoverflow.com/questions/5395309/how-do-i-force-cmake-to-include-pthread-option-during-compilation
 set(CMAKE_THREAD_PREFER_PTHREAD TRUE)