Commit 0c57a083 authored by Justin Brewer's avatar Justin Brewer Committed by Mark Nunberg
Browse files

Add ENABLE_EXAMPLES option, off by default


Signed-off-by: default avatarJustin Brewer <jzb0012@auburn.edu>
parent bbad21f5
......@@ -2,6 +2,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)
INCLUDE(GNUInstallDirs)
PROJECT(redisearch)
SET(ENABLE_EXAMPLES OFF CACHE BOOL "Enable building hiredis examples")
# Get the version numbers
MACRO(getVersionBit name)
......@@ -46,5 +48,6 @@ ADD_EXECUTABLE(hiredis-test
TARGET_LINK_LIBRARIES(hiredis-test hiredis)
# Add examples
ADD_SUBDIRECTORY(examples)
IF(ENABLE_EXAMPLES)
ADD_SUBDIRECTORY(examples)
ENDIF(ENABLE_EXAMPLES)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment