mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[vcpkg] add a patch for empty string literal
This commit is contained in:
parent
148a6e0a5b
commit
b46bb2f913
13
ports/libkml/patch_empty_literal_on_vc.patch
Normal file
13
ports/libkml/patch_empty_literal_on_vc.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/kml/base/file_win32.cc b/src/kml/base/file_win32.cc
|
||||||
|
index c46e099..28ccb36 100644
|
||||||
|
--- a/src/kml/base/file_win32.cc
|
||||||
|
+++ b/src/kml/base/file_win32.cc
|
||||||
|
@@ -42,7 +42,7 @@ namespace kmlbase {
|
||||||
|
// Internal to the win32 file class. We need a conversion from string to
|
||||||
|
// LPCWSTR.
|
||||||
|
static std::wstring Str2Wstr(const string& str) {
|
||||||
|
- std::wstring wstr(str.length(), L'');
|
||||||
|
+ std::wstring wstr(str.length(), L' ');
|
||||||
|
std::copy(str.begin(), str.end(), wstr.begin());
|
||||||
|
return wstr;
|
||||||
|
}
|
@ -7,6 +7,13 @@ vcpkg_from_github(
|
|||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
)
|
)
|
||||||
|
|
||||||
|
vcpkg_apply_patches(
|
||||||
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
|
PATCHES
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/patch_empty_literal_on_vc.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user