From 4c30a49b8603ad74fafc635b20f60cc91c8c4bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Fri, 19 Jan 2024 17:28:15 +0100 Subject: [PATCH] Update CMakeLists.txt --- src/engine/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/CMakeLists.txt b/src/engine/CMakeLists.txt index 576d999ec..8ae0d1281 100644 --- a/src/engine/CMakeLists.txt +++ b/src/engine/CMakeLists.txt @@ -50,7 +50,11 @@ if(WIN32) else() set(GN_PATH ${SKIA_SRC}/bin/gn) set(SKIA_BUILD_CMD ninja -j${N}) - set(SKIA_UPDATE_CMD true) + if(${USE_SKIA_SYSTEM_LIBS}) + set(SKIA_UPDATE_CMD true) + else() + set(SKIA_UPDATE_CMD python3 "tools/git-sync-deps") + endif() set(SKIA_ARGS "ar=\"${CMAKE_AR}\" cc=\"${CMAKE_C_COMPILER}\" cxx=\"${CMAKE_CXX_COMPILER}\"") set(SKIA_ARGS "${SKIA_ARGS} extra_cflags=[\"-Wno-error\", \"-Wno-psabi\"]") endif()