diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2020-08-31 10:29:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-31 10:29:37 -0700 |
commit | fb0e6c0dd9affd5728c6e0a6423f5dcb7b207947 (patch) | |
tree | 0f98bf69cc2a7c4e60318f490aed684139786421 | |
parent | bea137ca945a131f01159358ee76567992198e58 (diff) | |
parent | 13a35bdb64615e381c5e1151cdd4e78bba71a6db (diff) |
Merge pull request #870 from michael-grunder/cmake-c99
Explicitly set c99 in CMake
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1beccc6..4cbd438 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 |