mirror of https://github.com/microsoft/vcpkg.git
[flatbuffers] Add patch to fix MSVC runtime flags (#47668)
This commit is contained in:
parent
17e8c5e235
commit
0a8adbc1aa
|
|
@ -0,0 +1,19 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f7f388f..4ab8149 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -456,12 +456,14 @@ if(FLATBUFFERS_BUILD_FLATC)
|
||||
endif()
|
||||
|
||||
target_link_libraries(flatc PRIVATE $<BUILD_INTERFACE:ProjectConfig>)
|
||||
+ if(FALSE) # DONT mess with runtime flags
|
||||
target_compile_options(flatc
|
||||
PRIVATE
|
||||
$<$<AND:$<BOOL:${MSVC_LIKE}>,$<CONFIG:Release>>:
|
||||
/MT
|
||||
>
|
||||
)
|
||||
+ endif()
|
||||
|
||||
if(FLATBUFFERS_CODE_SANITIZE AND NOT WIN32)
|
||||
add_fsanitize_to_target(flatc ${FLATBUFFERS_CODE_SANITIZE})
|
||||
|
|
@ -8,6 +8,7 @@ vcpkg_from_github(
|
|||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-uwp-build.patch
|
||||
fix-runtime-flags-msvc.patch
|
||||
)
|
||||
|
||||
set(options "")
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "flatbuffers",
|
||||
"version": "25.9.23",
|
||||
"port-version": 1,
|
||||
"description": "FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.",
|
||||
"homepage": "https://google.github.io/flatbuffers/",
|
||||
"license": "Apache-2.0",
|
||||
|
|
|
|||
|
|
@ -2970,7 +2970,7 @@
|
|||
},
|
||||
"flatbuffers": {
|
||||
"baseline": "25.9.23",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"flatbush": {
|
||||
"baseline": "1.3.0",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "cf3ccaa4a8abd4a9dcc02a2006d3387e13e3a94c",
|
||||
"version": "25.9.23",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "34977bf5c6ebc9b593376b223f82a21e1c945d42",
|
||||
"version": "25.9.23",
|
||||
|
|
|
|||
Loading…
Reference in New Issue