Explicitly set c99 in CMake

See #869
This commit is contained in:
michael-grunder 2020-08-28 12:35:01 -07:00
parent bea137ca94
commit 13a35bdb64

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