From 774e11f312c34ccce6f52875090876b2de37b89b Mon Sep 17 00:00:00 2001 From: RarDog Date: Sat, 5 Sep 2026 12:47:58 +0300 Subject: [PATCH] fix(linux): add C language and suppress incompatible pointer warning in CMake --- linux/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index 49becf7..3ccad7f 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -1,6 +1,8 @@ # Project-level configuration. cmake_minimum_required(VERSION 3.13) -project(runner LANGUAGES CXX) +project(runner LANGUAGES CXX C) + +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=incompatible-pointer-types -Wno-incompatible-pointer-types") # The name of the executable created for the application. Change this to change # the on-disk name of your application. @@ -41,7 +43,8 @@ endif() # of modifying this function. function(APPLY_STANDARD_SETTINGS TARGET) target_compile_features(${TARGET} PUBLIC cxx_std_14) - target_compile_options(${TARGET} PRIVATE -Wall -Werror) + target_compile_options(${TARGET} PRIVATE -Wall) + target_compile_options(${TARGET} PRIVATE "$<$:-Wno-error=incompatible-pointer-types;-Wno-incompatible-pointer-types>") target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") endfunction()