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
8a15f4d6
Unverified
Commit
8a15f4d6
authored
Jun 26, 2022
by
Michael Grunder
Committed by
GitHub
Jun 26, 2022
Browse files
Merge pull request #1057 from orgads/static-name
Use the same name for static and shared libraries
parents
902dd047
dd4bf978
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
8a15f4d6
...
...
@@ -50,6 +50,11 @@ ADD_LIBRARY(hiredis_static STATIC ${hiredis_sources})
ADD_LIBRARY
(
hiredis::hiredis ALIAS hiredis
)
ADD_LIBRARY
(
hiredis::hiredis_static ALIAS hiredis_static
)
IF
(
NOT MSVC
)
SET_TARGET_PROPERTIES
(
hiredis_static
PROPERTIES OUTPUT_NAME hiredis
)
ENDIF
()
SET_TARGET_PROPERTIES
(
hiredis
PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE
VERSION
"
${
HIREDIS_SONAME
}
"
)
...
...
@@ -160,6 +165,10 @@ IF(ENABLE_SSL)
${
hiredis_ssl_sources
}
)
ADD_LIBRARY
(
hiredis_ssl_static STATIC
${
hiredis_ssl_sources
}
)
IF
(
NOT MSVC
)
SET_TARGET_PROPERTIES
(
hiredis_ssl_static
PROPERTIES OUTPUT_NAME hiredis_ssl
)
ENDIF
()
IF
(
APPLE
)
SET_PROPERTY
(
TARGET hiredis_ssl PROPERTY LINK_FLAGS
"-Wl,-undefined -Wl,dynamic_lookup"
)
...
...
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