1
1
CMAKE_MINIMUM_REQUIRED (VERSION 3.0.0 )
2
2
3
- OPTION (BUILD_SHARED_LIBS "Build shared libraries" ON )
4
- OPTION (ENABLE_SSL "Build hiredis_ssl for SSL support" OFF )
5
- OPTION (DISABLE_TESTS "If tests should be compiled or not" OFF )
6
- OPTION (ENABLE_SSL_TESTS "Should we test SSL connections" OFF )
7
- OPTION (ENABLE_EXAMPLES "Enable building hiredis examples" OFF )
8
- OPTION (ENABLE_ASYNC_TESTS "Should we run all asynchronous API tests" OFF )
9
- # Historically, the NuGet file was always install; default
10
- # to ON for those who rely on that historical behaviour.
11
- OPTION (ENABLE_NUGET "Install NuGET packaging details" ON )
12
-
13
3
MACRO (getVersionBit name )
14
4
SET (VERSION_REGEX "^#define ${name} (.+)$" )
15
5
FILE (STRINGS "${CMAKE_CURRENT_SOURCE_DIR} /hiredis.h"
@@ -27,6 +17,16 @@ MESSAGE("Detected version: ${VERSION}")
27
17
PROJECT (hiredis LANGUAGES "C" VERSION "${VERSION} " )
28
18
INCLUDE (GNUInstallDirs )
29
19
20
+ OPTION (BUILD_SHARED_LIBS "Build shared libraries" ON )
21
+ OPTION (ENABLE_SSL "Build hiredis_ssl for SSL support" OFF )
22
+ OPTION (DISABLE_TESTS "If tests should be compiled or not" OFF )
23
+ OPTION (ENABLE_SSL_TESTS "Should we test SSL connections" OFF )
24
+ OPTION (ENABLE_EXAMPLES "Enable building hiredis examples" OFF )
25
+ OPTION (ENABLE_ASYNC_TESTS "Should we run all asynchronous API tests" OFF )
26
+ # Historically, the NuGet file was always install; default
27
+ # to ON for those who rely on that historical behaviour.
28
+ OPTION (ENABLE_NUGET "Install NuGET packaging details" ON )
29
+
30
30
# Hiredis requires C99
31
31
SET (CMAKE_C_STANDARD 99 )
32
32
SET (CMAKE_DEBUG_POSTFIX d )
0 commit comments