aboutsummaryrefslogtreecommitdiff
path: root/sysutils/facter/files
diff options
context:
space:
mode:
authorMichael Moll <mmoll@FreeBSD.org>2015-09-14 15:45:58 +0000
committerMichael Moll <mmoll@FreeBSD.org>2015-09-14 15:45:58 +0000
commita1c7d43ee10f27ff1ee88d37523c9cfdf621c49b (patch)
tree0c256a5bec0f6f00f8d1b9d06a25c5bc69b6270b /sysutils/facter/files
parenteb50e8ca0f44a5ea76a0ef200de296b92339040d (diff)
downloadports-a1c7d43ee10f27ff1ee88d37523c9cfdf621c49b.tar.gz
ports-a1c7d43ee10f27ff1ee88d37523c9cfdf621c49b.zip
Notes
Diffstat (limited to 'sysutils/facter/files')
-rw-r--r--sysutils/facter/files/patch-vendor_leatherman_cmake_cflags.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysutils/facter/files/patch-vendor_leatherman_cmake_cflags.cmake b/sysutils/facter/files/patch-vendor_leatherman_cmake_cflags.cmake
index 7b72faf18f4e..1c7bb33e13da 100644
--- a/sysutils/facter/files/patch-vendor_leatherman_cmake_cflags.cmake
+++ b/sysutils/facter/files/patch-vendor_leatherman_cmake_cflags.cmake
@@ -1,5 +1,14 @@
--- vendor/leatherman/cmake/cflags.cmake.orig 2015-07-21 17:31:29 UTC
+++ vendor/leatherman/cmake/cflags.cmake
+@@ -2,7 +2,7 @@
+ # Each of our project dirs sets CMAKE_CXX_FLAGS based on these. We do
+ # not set CMAKE_CXX_FLAGS globally because gtest is not warning-clean.
+ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+- set(LEATHERMAN_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -Werror -Wno-unused-parameter -Wno-tautological-constant-out-of-range-compare")
++ set(LEATHERMAN_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-error")
+
+ # Clang warns that 'register' is deprecated; 'register' is used throughout boost, so it can't be an error yet.
+ # The warning flag is different on different clang versions so we need to extract the clang version.
@@ -21,6 +21,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL
else()
set(LEATHERMAN_CXX_FLAGS "${LEATHERMAN_CXX_FLAGS} -Wno-deprecated")