From e2de23ed57cbac1922e2e9d38d1567ecf11df571 Mon Sep 17 00:00:00 2001 From: samsonium Date: Thu, 29 Oct 2026 00:26:33 +0300 Subject: [PATCH] fix: suppress libffi cmake warnings --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 673be5c..46f3ca5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,12 +13,21 @@ endif() include_directories(include) include(FetchContent) +# --- libffi --- + +set(PREV_SUPPRESS_DEV ${CMAKE_SUPPRESS_DEVELOPER_WARNINGS}) +set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS TRUE CACHE INTERNAL "") + FetchContent_Declare(ffi GIT_REPOSITORY "https://git.samsonium.dev/samsonium/libffi.git" GIT_TAG "main" ) FetchContent_MakeAvailable(ffi) +set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS ${PREV_SUPPRESS_DEV} CACHE INTERNAL "") + +# -------------- + # Compiler add_executable(fzc src/compiler/utils/fzl_const_pool.c