Skip to content

Commit 16b21fc

Browse files
committed
cmake : skip boringssl tools
Signed-off-by: Adrien Gallouët <[email protected]>
1 parent a4b12d6 commit 16b21fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vendor/cpp-httplib/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ if (LLAMA_BUILD_BORINGSSL)
3030

3131
message(STATUS "Fetching BoringSSL version ${BORINGSSL_VERSION}")
3232

33+
# write an empty file to replace boringssl tool/CMakeLists.txt
34+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/empty" "")
35+
3336
include(FetchContent)
3437
FetchContent_Declare(
3538
boringssl
3639
GIT_REPOSITORY ${BORINGSSL_GIT}
3740
GIT_TAG ${BORINGSSL_VERSION}
41+
PATCH_COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_BINARY_DIR}/empty" "tool/CMakeLists.txt"
3842
)
3943

4044
set(SAVED_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})

0 commit comments

Comments
 (0)