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)
|