mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 01:29:01 +08:00
[nanodbc] fix build (#34112)
This commit is contained in:
parent
2f1cc4c0a4
commit
e006ea4f2c
13
ports/nanodbc/no-werror.patch
Normal file
13
ports/nanodbc/no-werror.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 1ce7232..57836fe 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -35,7 +35,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
message(STATUS "nanodbc compile: C++${CMAKE_CXX_STANDARD}")
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror")
|
||||
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
||||
include(CheckCXXCompilerFlag)
|
||||
|
||||
if (NANODBC_ENABLE_COVERAGE)
|
@ -12,6 +12,7 @@ vcpkg_from_github(
|
||||
rename-version.patch
|
||||
add-missing-include.patch
|
||||
find-unixodbc.patch
|
||||
no-werror.patch
|
||||
)
|
||||
file(RENAME "${SOURCE_PATH}/VERSION" "${SOURCE_PATH}/VERSION.txt")
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "nanodbc",
|
||||
"version": "2.13.0",
|
||||
"port-version": 6,
|
||||
"port-version": 7,
|
||||
"description": "A small C++ wrapper for the native C ODBC API.",
|
||||
"homepage": "https://github.com/nanodbc/nanodbc",
|
||||
"dependencies": [
|
||||
|
@ -5678,7 +5678,7 @@
|
||||
},
|
||||
"nanodbc": {
|
||||
"baseline": "2.13.0",
|
||||
"port-version": 6
|
||||
"port-version": 7
|
||||
},
|
||||
"nanoflann": {
|
||||
"baseline": "1.5.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "b57473b86bc71733209e195206d253f1dd3658b2",
|
||||
"version": "2.13.0",
|
||||
"port-version": 7
|
||||
},
|
||||
{
|
||||
"git-tree": "7de6296fc337f181517f8ed4c2e6ed35d749e414",
|
||||
"version": "2.13.0",
|
||||
|
Loading…
Reference in New Issue
Block a user