From 82f2c73ce9490d29090b73610bec851a892ac77f Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Sat, 27 Feb 2021 00:35:58 +0100 Subject: [PATCH] CMake: Explicitly set C standard to 99 This change fixes our Ubuntu Trusty and Precise builds on GitLab, which currently fail because they use C89/90 by default. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b5656e2..e74dd5a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,8 @@ project("SoftEther VPN" LANGUAGES C ) +set(CMAKE_C_STANDARD 99) + set(TOP_DIRECTORY ${CMAKE_SOURCE_DIR}) set(BUILD_DIRECTORY ${CMAKE_BINARY_DIR})