From 1d5315c3ed30d026acb79a1aa53a276fc833ffa7 Mon Sep 17 00:00:00 2001 From: John Kesapides <46718829+JohnKesapidesARM@users.noreply.github.com> Date: Fri, 11 Dec 2020 10:41:18 +0000 Subject: [PATCH] Add C99 flag as last commit added some c99 variable declarations (#135) * Add C99 flag as last commit added some c99 variable declarations Signed-off-by: John Kesapides * Add CMAKE_C_STANDARD_REQUIRED Signed-off-by: John Kesapides --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa791a3..620aff6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,8 @@ project (OpenCL-ICD-Loader VERSION 1.2) include (GNUInstallDirs) find_package (Threads REQUIRED) +set(CMAKE_C_STANDARD 99) +set(CMAKE_C_STANDARD_REQUIRED ON) # The option below allows building the ICD Loader library as a shared library # (ON, default) or a static library (OFF). # -- 2.7.4