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
b2d1ad64
Unverified
Commit
b2d1ad64
authored
Dec 05, 2019
by
Michael Grunder
Committed by
GitHub
Dec 05, 2019
Browse files
Merge pull request #727 from pbotros/botros/disable-tests-cmake
Adding an option to DISABLE_TESTS
parents
f2ef5f0c
f052fd1a
Changes
1
Show whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
b2d1ad64
...
...
@@ -3,6 +3,7 @@ INCLUDE(GNUInstallDirs)
PROJECT
(
hiredis
)
OPTION
(
ENABLE_SSL
"Build hiredis_ssl for SSL support"
OFF
)
OPTION
(
DISABLE_TESTS
"If tests should be compiled or not"
OFF
)
MACRO
(
getVersionBit name
)
SET
(
VERSION_REGEX
"^#define
${
name
}
(.+)$"
)
...
...
@@ -76,7 +77,7 @@ IF(ENABLE_SSL)
DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig
)
ENDIF
()
IF
(
NOT
(
WIN32 OR MINGW
))
IF
(
NOT
(
DISABLE_TESTS
OR
(
WIN32 OR MINGW
))
)
ENABLE_TESTING
()
ADD_EXECUTABLE
(
hiredis-test test.c
)
TARGET_LINK_LIBRARIES
(
hiredis-test hiredis
)
...
...
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