Skip to content

Commit

Permalink
Explicitly set c99 in CMake
Browse files Browse the repository at this point in the history
See #869
  • Loading branch information
michael-grunder committed Aug 28, 2020
1 parent bea137c commit 13a35bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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
Expand Down

0 comments on commit 13a35bd

Please sign in to comment.