Merge pull request #870 from michael-grunder/cmake-c99

Explicitly set c99 in CMake
This commit is contained in:
Michael Grunder 2020-08-31 10:29:37 -07:00 committed by GitHub
commit fb0e6c0dd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ MESSAGE("Detected version: ${VERSION}")
PROJECT(hiredis VERSION "${VERSION}")
# Hiredis requires C99
SET(CMAKE_C_STANDARD 99)
SET(ENABLE_EXAMPLES OFF CACHE BOOL "Enable building hiredis examples")
SET(hiredis_sources