diff --git a/CMakeLists.txt b/CMakeLists.txt index 75e81ce09..7b0183a5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ cmake_minimum_required(VERSION 3.9) project(FreeRDP C) -set(CMAKE_C_STANDARD 99) +set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_EXTENSIONS ON) diff --git a/rdtk/CMakeLists.txt b/rdtk/CMakeLists.txt index 02848efdd..913d59066 100644 --- a/rdtk/CMakeLists.txt +++ b/rdtk/CMakeLists.txt @@ -27,7 +27,7 @@ if (NOT FREERDP_UNIFIED_BUILD) cmake_minimum_required(VERSION 3.9) project(RdTk VERSION ${RDTK_VERSION} LANGUAGES C) - set(CMAKE_C_STANDARD 99) + set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_EXTENSIONS ON) diff --git a/server/proxy/modules/capture/CMakeLists.txt b/server/proxy/modules/capture/CMakeLists.txt index eaa045244..650c983b0 100644 --- a/server/proxy/modules/capture/CMakeLists.txt +++ b/server/proxy/modules/capture/CMakeLists.txt @@ -23,6 +23,10 @@ cmake_minimum_required(VERSION 3.9) project(proxy-capture-plugin VERSION 1.0.0 LANGUAGES C) +set(CMAKE_C_STANDARD 11) +set(CMAKE_C_STANDARD_REQUIRED ON) +set(CMAKE_C_EXTENSIONS ON) + include(CheckIPOSupported) check_ipo_supported(RESULT supported OUTPUT error) if (supported) diff --git a/uwac/CMakeLists.txt b/uwac/CMakeLists.txt index d5354ece8..bde20e337 100644 --- a/uwac/CMakeLists.txt +++ b/uwac/CMakeLists.txt @@ -27,7 +27,7 @@ if (NOT FREERDP_UNIFIED_BUILD) cmake_minimum_required(VERSION 3.9) project(uwac VERSION ${UWAC_VERSION} LANGUAGES C) - set(CMAKE_C_STANDARD 99) + set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_EXTENSIONS ON) diff --git a/winpr/CMakeLists.txt b/winpr/CMakeLists.txt index ca7711c78..3e8eb73e6 100644 --- a/winpr/CMakeLists.txt +++ b/winpr/CMakeLists.txt @@ -19,7 +19,7 @@ if (NOT FREERDP_UNIFIED_BUILD) cmake_minimum_required(VERSION 3.9) project(WinPR LANGUAGES C) - set(CMAKE_C_STANDARD 99) + set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_EXTENSIONS ON)