Add C99 flag as last commit added some c99 variable declarations (#135)
authorJohn Kesapides <46718829+JohnKesapidesARM@users.noreply.github.com>
Fri, 11 Dec 2020 10:41:18 +0000 (10:41 +0000)
committerGitHub <noreply@github.com>
Fri, 11 Dec 2020 10:41:18 +0000 (10:41 +0000)
* Add C99 flag as last commit added some c99 variable declarations

Signed-off-by: John Kesapides <john.kesapides@arm.com>
* Add CMAKE_C_STANDARD_REQUIRED

Signed-off-by: John Kesapides <john.kesapides@arm.com>
CMakeLists.txt

index fa791a3..620aff6 100644 (file)
@@ -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).
 #