Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
0c57a083
Commit
0c57a083
authored
Jan 21, 2019
by
Justin Brewer
Committed by
Mark Nunberg
Feb 20, 2019
Browse files
Add ENABLE_EXAMPLES option, off by default
Signed-off-by:
Justin Brewer
<
jzb0012@auburn.edu
>
parent
bbad21f5
Changes
1
Show whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
0c57a083
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment