Explicitly set c99 in CMake

See #869
master
michael-grunder 2020-08-28 12:35:01 -07:00
parent bea137ca94
commit 13a35bdb64
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