void-packages/srcpkgs/msg2/patches/fix-cflags.patch

14 lines
531 B
Diff
Raw Normal View History

2021-03-26 14:20:13 +00:00
Index: CMakeLists.txt
===================================================================
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2021-03-26 14:20:13 +00:00
@@ -3,7 +3,7 @@ project(msg2)
# Flags
set(CMAKE_CXX_STANDARD 17)
-set(CMAKE_CXX_FLAGS "-Os -pipe -fPIC -fno-plt -fstack-protector-strong -Wall -Wshadow -pedantic -Wno-parentheses -Wfatal-errors")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pipe -fPIC -fno-plt -fstack-protector-strong -Wall -Wshadow -pedantic -Wno-parentheses -Wfatal-errors")
# Add source files
add_executable(msg2 main.cpp)