From: John Kesapides <46718829+JohnKesapidesARM@users.noreply.github.com> Date: Fri, 11 Dec 2020 10:41:18 +0000 (+0000) Subject: Add C99 flag as last commit added some c99 variable declarations (#135) X-Git-Tag: upstream/v2022.01.04~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d5315c3ed30d026acb79a1aa53a276fc833ffa7;p=platform%2Fupstream%2FOpenCL-ICD-Loader.git 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 --- 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). #