Skip to content

Commit

Permalink
add patch to remove -Wall from cflags
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmmacleod committed Nov 19, 2021
1 parent e8b90cc commit 64a8f30
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions recipe/cflags.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ec5c878..e36246b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,11 +14,11 @@ find_package( CURL REQUIRED )
find_package( UUID REQUIRED )

if( CMAKE_COMPILER_IS_GNUCXX )
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror" )
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall" )
endif()

if( CMAKE_COMPILER_IS_GNUCC )
- set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror" )
+ set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall" )
endif()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
2 changes: 2 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ source:
- macos-uuid.patch # [osx]
# https://github.com/scitokens/scitokens-cpp/issues/61
- vendor-jwt-cpp.patch
# https://github.com/scitokens/scitokens-cpp/issues/72
- cflags.patch

build:
error_overdepending: true
Expand Down

0 comments on commit 64a8f30

Please sign in to comment.