aboutsummaryrefslogtreecommitdiff
path: root/ports/tinyutf8/fixbuild.patch
diff options
context:
space:
mode:
authorつむぎん <oishikazuki@gmail.com>2018-10-04 13:32:36 +0900
committerRobert Schumacher <roschuma@microsoft.com>2018-10-03 21:32:36 -0700
commitdabfd4e0227355229eb1355b866e16d325c0cde7 (patch)
tree9e0486130bc7a3f7cbe36bd034110121208d84bb /ports/tinyutf8/fixbuild.patch
parent37b17780533da7a3e369bda90e044aed714f7033 (diff)
downloadvcpkg-dabfd4e0227355229eb1355b866e16d325c0cde7.tar.gz
vcpkg-dabfd4e0227355229eb1355b866e16d325c0cde7.zip
[tinyutf8] Initial port for tinyutf8. (#4388)
* Add tinyutf8 port. * [tinyutf8] Use vcpkg_from_github(). Simplify patch.
Diffstat (limited to 'ports/tinyutf8/fixbuild.patch')
-rw-r--r--ports/tinyutf8/fixbuild.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/ports/tinyutf8/fixbuild.patch b/ports/tinyutf8/fixbuild.patch
new file mode 100644
index 000000000..c1798ada1
--- /dev/null
+++ b/ports/tinyutf8/fixbuild.patch
@@ -0,0 +1,29 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4ec8787..cfea5b3 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,7 +1,7 @@
+ cmake_minimum_required(VERSION 3.1)
+ project(tinyutf8)
+
+-set(CMAKE_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD 17)
+
+ option(TINYUTF8_BUILD_STATIC "Build as static library" On)
+
+@@ -14,3 +14,14 @@ endif()
+ add_library(tinyutf8 ${LIB_BUILD_TYPE} lib/tinyutf8.cpp)
+
+ target_include_directories(tinyutf8 PUBLIC include)
++
++if(MSVC)
++ ADD_DEFINITIONS(-D_UNICODE)
++endif()
++
++install(TARGETS tinyutf8
++ RUNTIME DESTINATION bin
++ ARCHIVE DESTINATION lib
++ LIBRARY DESTINATION lib)
++
++install(FILES include/tinyutf8.h DESTINATION include)
+\ No newline at end of file