build: disable all compiler warnings from dependencies

This commit is contained in:
dundargoc 2023-11-20 02:01:39 +01:00 committed by dundargoc
parent d667e0e414
commit 7a80e169c5
7 changed files with 12 additions and 9 deletions

View File

@ -22,7 +22,7 @@ if(USE_BUNDLED_LIBUV)
list(APPEND LUV_CMAKE_ARGS -D CMAKE_PREFIX_PATH=${DEPS_INSTALL_DIR})
endif()
list(APPEND LUV_CMAKE_ARGS "-DCMAKE_C_FLAGS:STRING=${DEPS_INCLUDE_FLAGS}")
list(APPEND LUV_CMAKE_ARGS "-DCMAKE_C_FLAGS:STRING=${DEPS_INCLUDE_FLAGS} -w")
if(CMAKE_GENERATOR MATCHES "Unix Makefiles" AND
(CMAKE_SYSTEM_NAME MATCHES ".*BSD" OR CMAKE_SYSTEM_NAME MATCHES "DragonFly"))
list(APPEND LUV_CMAKE_ARGS -D CMAKE_MAKE_PROGRAM=gmake)

View File

@ -73,8 +73,7 @@ set_property(TARGET libintl APPEND PROPERTY COMPILE_DEFINITIONS
NO_XMALLOC
set_relocation_prefix=libintl_set_relocation_prefix
relocate=libintl_relocate
HAVE_CONFIG_H
_CRT_SECURE_NO_WARNINGS)
HAVE_CONFIG_H)
file(READ gettext-tools/config.h.in CONFIG_CONTENT)

View File

@ -31,7 +31,7 @@ set(USE_MBSTATE_T 0)
configure_file(libcharset/include/localcharset.h.build.in localcharset.h)
configure_file(include/iconv.h.build.in iconv.h)
add_definitions(-DLIBDIR -D_CRT_SECURE_NO_WARNINGS)
add_definitions(-DLIBDIR)
add_library(libcharset libcharset/lib/localcharset.c)

View File

@ -16,7 +16,7 @@ endif()
add_library(termkey termkey.c driver-csi.c driver-ti.c)
target_compile_definitions(termkey PRIVATE _CRT_SECURE_NO_WARNINGS HAVE_UNIBILIUM)
target_compile_definitions(termkey PRIVATE HAVE_UNIBILIUM)
target_include_directories(termkey PRIVATE SYSTEM ${UNIBILIUM_INCLUDE_DIRS})
set_target_properties(termkey PROPERTIES

View File

@ -3,10 +3,6 @@ project(libvterm C)
include(GNUInstallDirs)
if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE)
endif()
set(DECDRAWING [[
static const struct StaticTableEncoding encoding_DECdrawing = {
{ .decode = &decode_table },

View File

@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.10)
project (lpeg C)
add_compile_options(-w)
include(GNUInstallDirs)
file(GLOB LPEG_SOURCES ${CMAKE_SOURCE_DIR}/*.c)

View File

@ -18,6 +18,12 @@ if(APPLE)
list(APPEND DEPS_CMAKE_ARGS -D CMAKE_FIND_FRAMEWORK=${CMAKE_FIND_FRAMEWORK})
endif()
if(MSVC)
list(APPEND DEPS_CMAKE_ARGS -D CMAKE_C_FLAGS="/w")
else()
list(APPEND DEPS_CMAKE_ARGS -D CMAKE_C_FLAGS="-w")
endif()
set(DEPS_CMAKE_CACHE_ARGS -DCMAKE_OSX_ARCHITECTURES:STRING=${CMAKE_OSX_ARCHITECTURES})
# MAKE_PRG