openbsd-ports/devel/msgpack/patches/patch-test_CMakeLists_txt
jasper f69477144e import msgpack-2.0.0
MessagePack is an efficient binary serialization format, which lets you
exchange data among multiple languages like JSON, except that it's
faster and smaller. Small integers are encoded into a single byte while
typical short strings require only one extra byte in addition to the
strings themselves.

initial port by edd@
OK edd@
2016-12-21 19:17:14 +00:00

16 lines
857 B
Plaintext

$OpenBSD: patch-test_CMakeLists_txt,v 1.1.1.1 2016/12/21 19:17:15 jasper Exp $
Kill -g -O3. Kill -Werror, as gtest header makes warnings.
--- test/CMakeLists.txt.orig Sun Nov 27 11:15:28 2016
+++ test/CMakeLists.txt Sun Nov 27 11:15:48 2016
@@ -79,7 +79,7 @@ FOREACH (source_file ${check_PROGRAMS})
)
ADD_TEST (${source_file_we} ${source_file_we})
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
- SET_PROPERTY (TARGET ${source_file_we} APPEND_STRING PROPERTY COMPILE_FLAGS "-Wall -Wextra -Werror -g -O3 ")
+ SET_PROPERTY (TARGET ${source_file_we} APPEND_STRING PROPERTY COMPILE_FLAGS "-Wall -Wextra")
ENDIF ()
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
SET_PROPERTY (TARGET ${source_file_we} APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-mismatched-tags")