1 diff --git a/helio/cmake/third_party.cmake b/helio/cmake/third_party.cmake
2 index aeb78d9..e9d4e6b 100644
3 --- a/helio/cmake/third_party.cmake
4 +++ b/helio/cmake/third_party.cmake
5 @@ -143,7 +143,7 @@ endfunction()
9 - URL https://github.com/google/googletest/archive/release-1.11.0.zip
10 + DOWNLOAD_COMMAND true
13 FetchContent_GetProperties(gtest)
14 @@ -154,7 +154,7 @@ endif ()
18 - URL https://github.com/google/benchmark/archive/v1.6.1.tar.gz
19 + DOWNLOAD_COMMAND true
22 FetchContent_GetProperties(benchmark)
23 @@ -169,7 +169,7 @@ endif ()
27 - URL https://github.com/abseil/abseil-cpp/archive/20211102.0.tar.gz
28 + DOWNLOAD_COMMAND true
29 PATCH_COMMAND patch -p1 < "${CMAKE_CURRENT_LIST_DIR}/../patches/abseil-20211102.patch"
32 @@ -183,11 +183,7 @@ endif()
36 - GIT_REPOSITORY https://github.com/romange/glog
41 + DOWNLOAD_COMMAND true
44 FetchContent_GetProperties(glog)
45 @@ -233,10 +229,7 @@ endif()
49 - URL https://github.com/gperftools/gperftools/archive/gperftools-2.9.1.tar.gz
50 - #GIT_REPOSITORY https://github.com/gperftools/gperftools
51 - #GIT_TAG gperftools-2.9.1
53 + DOWNLOAD_COMMAND true
54 PATCH_COMMAND autoreconf -i # update runs every time for some reason
55 # CMAKE_PASS_FLAGS "-DGPERFTOOLS_BUILD_HEAP_PROFILER=OFF -DGPERFTOOLS_BUILD_HEAP_CHECKER=OFF \
56 # -DGPERFTOOLS_BUILD_DEBUGALLOC=OFF -DBUILD_TESTING=OFF \
57 @@ -260,11 +253,12 @@ else()
60 add_third_party(mimalloc
61 - URL https://github.com/microsoft/mimalloc/archive/refs/tags/v2.0.5.tar.gz
62 + DOWNLOAD_COMMAND true
64 # Add -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-O0 to debug
65 CMAKE_PASS_FLAGS "-DCMAKE_BUILD_TYPE=Release -DMI_BUILD_SHARED=OFF -DMI_BUILD_TESTS=OFF \
66 - -DMI_INSTALL_TOPLEVEL=ON -DMI_OVERRIDE=${MI_OVERRIDE} -DCMAKE_C_FLAGS=-g"
67 + -DMI_INSTALL_TOPLEVEL=ON -DMI_OVERRIDE=${MI_OVERRIDE} -DCMAKE_C_FLAGS=-g \
68 + -DCMAKE_INSTALL_LIBDIR=${THIRD_PARTY_LIB_DIR}/mimalloc/lib"
70 BUILD_COMMAND make -j4 mimalloc-static
71 INSTALL_COMMAND make install
72 @@ -274,7 +268,7 @@ add_third_party(mimalloc
75 add_third_party(jemalloc
76 - URL https://github.com/jemalloc/jemalloc/releases/download/5.2.1/jemalloc-5.2.1.tar.bz2
77 + URL REPLACEJEMALLOCURL
78 PATCH_COMMAND ./autogen.sh
79 CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${THIRD_PARTY_LIB_DIR}/jemalloc --with-jemalloc-prefix=je_ --disable-libdl
81 @@ -282,24 +276,23 @@ add_third_party(jemalloc
85 - URL https://github.com/Cyan4973/xxHash/archive/v0.8.0.tar.gz
86 + DOWNLOAD_COMMAND true
87 SOURCE_SUBDIR cmake_unofficial
88 - CMAKE_PASS_FLAGS "-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=OFF"
89 + CMAKE_PASS_FLAGS "-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=OFF \
90 + -DCMAKE_INSTALL_LIBDIR=${THIRD_PARTY_LIB_DIR}/xxhash/lib"
96 - GIT_REPOSITORY https://github.com/axboe/liburing.git
97 - GIT_TAG liburing-2.1
98 + DOWNLOAD_COMMAND true
99 CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${THIRD_PARTY_LIB_DIR}/uring
105 - GIT_REPOSITORY https://github.com/Tencent/rapidjson.git
106 - GIT_TAG 1a803826f1197b5e30703afe4b9c0e7dd48074f5
107 + DOWNLOAD_COMMAND true
108 CMAKE_PASS_FLAGS "-DRAPIDJSON_BUILD_TESTS=OFF -DRAPIDJSON_BUILD_EXAMPLES=OFF \
109 -DRAPIDJSON_BUILD_DOC=OFF"
111 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
112 index 0dc0824..d5b38b3 100644
113 --- a/src/CMakeLists.txt
114 +++ b/src/CMakeLists.txt
118 - URL https://github.com/lua/lua/archive/refs/tags/v5.4.4.tar.gz
120 PATCH_COMMAND patch -p1 -i "${CMAKE_SOURCE_DIR}/patches/lua-v5.4.4.patch"
121 CONFIGURE_COMMAND echo
123 @@ -11,7 +11,8 @@ add_third_party(
127 - URL https://github.com/google/double-conversion/archive/refs/tags/v3.2.0.tar.gz
128 + DOWNLOAD_COMMAND true
129 + CMAKE_PASS_FLAGS "-DCMAKE_INSTALL_LIBDIR=${THIRD_PARTY_LIB_DIR}/dconv/lib"
130 LIB libdouble-conversion.a