Browse Source

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.
Davide Beatrici 4 years ago
parent
commit
82f2c73ce9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      CMakeLists.txt

+ 2 - 0
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})