Skip to content

Commit 03f9596

Browse files
committed
Update googletest and utfcpp
Signed-off-by: Roberto Raggi <[email protected]>
1 parent 5031500 commit 03f9596

File tree

3 files changed

+9
-39
lines changed

3 files changed

+9
-39
lines changed

CMakeLists.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ if(CXX_BUILD_TESTS)
7272
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
7373

7474
FetchContent_Declare(
75-
googletest
76-
URL https://github.com/google/googletest/archive/refs/tags/v1.15.2.tar.gz
75+
googletest
76+
URL https://github.com/google/googletest/archive/refs/tags/v1.17.0.tar.gz
77+
URL_HASH SHA256=65fab701d9829d38cb77c14acdc431d2108bfdbf8979e40eb8ae567edf10b27c
7778
)
7879

7980
FetchContent_MakeAvailable(googletest)
@@ -87,13 +88,15 @@ endif()
8788
#
8889
FetchContent_Declare(
8990
utfcpp
90-
URL https://github.com/nemtrif/utfcpp/archive/refs/tags/v4.0.5.tar.gz
91-
PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_SOURCE_DIR}/patches/utfcpp.patch
91+
URL https://github.com/nemtrif/utfcpp/archive/refs/tags/v4.0.8.tar.gz
92+
URL_HASH SHA256=f808b26d8c3a59def27fea207182ece77a8930bd121a69f80d328ecf3cfef925
9293
)
9394

9495
FetchContent_MakeAvailable(utfcpp)
9596
FetchContent_GetProperties(utfcpp)
9697

98+
set(UTFCPP_INCLUDE_DIRS "${utfcpp_SOURCE_DIR}/source")
99+
97100
#
98101
# nlohmann_json
99102
#

patches/utfcpp.patch

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/parser/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ if (EMSCRIPTEN)
102102
target_compile_options(cxx-parser PUBLIC -fno-exceptions)
103103
endif()
104104

105-
target_link_libraries(cxx-parser
106-
PUBLIC $<BUILD_INTERFACE:utf8cpp>
105+
target_include_directories(cxx-parser PUBLIC
106+
$<BUILD_INTERFACE:${UTFCPP_INCLUDE_DIRS}>
107107
)
108108

109109
if (CXX_ENABLE_FLATBUFFERS)

0 commit comments

Comments
 (0)