aboutsummaryrefslogtreecommitdiff
path: root/ports/tinyutf8/fixbuild.patch
diff options
context:
space:
mode:
authorBob Kast <bob.kast@emc.com>2018-10-23 09:06:58 -0400
committerBob Kast <bob.kast@emc.com>2018-10-23 09:06:58 -0400
commit230d795ae3c3f2e45821b887c6065a81a8c04326 (patch)
tree7b014a1547ff1cc9ef80add56eb03b17774a1ff6 /ports/tinyutf8/fixbuild.patch
parent3d1fbeb7de48a3d7a782be7b8722efb5015c7010 (diff)
parent9b21ff9612916e24f89c6839599d3d50446597d8 (diff)
downloadvcpkg-230d795ae3c3f2e45821b887c6065a81a8c04326.tar.gz
vcpkg-230d795ae3c3f2e45821b887c6065a81a8c04326.zip
Merge branch 'master' of https://github.com/EMCECS/vcpkg
# Conflicts: # ports/ecsutil/CONTROL # ports/ecsutil/portfile.cmake
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