void-packages/srcpkgs/apvlv/patches/cxxflags_from_env.patch

12 lines
445 B
Diff

--- src/CMakeLists.txt.orig 2016-09-14 01:48:05.822928918 +0200
+++ src/CMakeLists.txt 2016-09-14 01:48:54.906931451 +0200
@@ -1,7 +1,7 @@
IF (WIN32)
ADD_DEFINITIONS (-D_CRT_SECURE_NO_WARNINGS)
ELSE (WIN32)
- SET (CMAKE_CXX_FLAGS "-Wall -fno-strict-aliasing")
+ SET (CMAKE_CXX_FLAGS "-Wall -fno-strict-aliasing ${CMAKE_CXX_FLAGS}")
OPTION (APVLV_ENABLE_DEBUG "If build binary with debug infomations." OFF)
IF (APVLV_ENABLE_DEBUG)