Set required C standard to C99 with extensions

This commit is contained in:
Armin Novak 2022-02-24 12:19:10 +01:00 committed by akallabeth
parent 5fd3bf7c0c
commit cb27338bf4
4 changed files with 16 additions and 0 deletions

View File

@ -22,6 +22,10 @@ cmake_minimum_required(VERSION 3.4)
project(FreeRDP C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS ON)
if(NOT DEFINED VENDOR)
set(VENDOR "FreeRDP" CACHE STRING "FreeRDP package vendor")
endif()

View File

@ -27,6 +27,10 @@ if (NOT FREERDP_UNIFIED_BUILD)
cmake_minimum_required(VERSION 3.4)
project(RdTk VERSION ${RDTK_VERSION} LANGUAGES C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS ON)
set(CMAKE_COLOR_MAKEFILE ON)
set(WINPR_VERSION_MAJOR 3)

View File

@ -27,6 +27,10 @@ if (NOT FREERDP_UNIFIED_BUILD)
cmake_minimum_required(VERSION 3.4)
project(uwac VERSION ${UWAC_VERSION} LANGUAGES C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS ON)
set(CMAKE_COLOR_MAKEFILE ON)
option(BUILD_SHARED_LIBS "Build shared libraries" ON)

View File

@ -19,6 +19,10 @@ if (NOT FREERDP_UNIFIED_BUILD)
cmake_minimum_required(VERSION 3.4)
project(WinPR LANGUAGES C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS ON)
set(CMAKE_COLOR_MAKEFILE ON)
option(WITH_LIBRARY_VERSIONING "Use library version triplet" ON)