vcpkg/ports/tinyutf8/fixbuild.patch
つむぎん dabfd4e022 [tinyutf8] Initial port for tinyutf8. (#4388)
* Add tinyutf8 port.

* [tinyutf8] Use vcpkg_from_github(). Simplify patch.
2018-10-03 21:32:36 -07:00

30 lines
735 B
Diff

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