[vcpkg] add a patch for empty string literal

This commit is contained in:
atkawa7 2017-07-28 16:54:57 -07:00
parent 148a6e0a5b
commit b46bb2f913
2 changed files with 20 additions and 0 deletions

View 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;
}

View File

@ -7,6 +7,13 @@ vcpkg_from_github(
HEAD_REF master
)
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES
"${CMAKE_CURRENT_LIST_DIR}/patch_empty_literal_on_vc.patch"
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
)