-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake: Take care of zstd static lib on Win32 #2307
Conversation
When built as a static library on Win32, zstd has output names like zstd_static.lib (Release) and zstd_staticd.lib (Debug): https://github.com/facebook/zstd/blob/69baaee3e42f90dedea2c946bc19bfeac4e782ee/build/cmake/lib/CMakeLists.txt#L141 and find_library(ZSTD zstd) will not work in such cases.
@@ -0,0 +1,28 @@ | |||
# https://github.com/facebook/folly/blob/master/CMake/FindZstd.cmake | |||
# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to include the folly license in this directory as LICENSE.FindZstd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! @edenhill Thanks for your review! I have added a license file for FindZstd.cmake
: https://github.com/myd7349/librdkafka/blob/win32-zstd-static-lib/LICENSE.FindZstd
BTW, I cut these lines off: https://github.com/facebook/folly/blob/master/LICENSE#L180-L200
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move LICENSE.FindZstd to the packaging/cmake/... directory where FindZstd resides.
Otherwise the license will be picked up by the license generator and included in releases, which is not necessary since we're not actually shipping any code of FindZstd
e4732bf
to
acdc8c1
Compare
acdc8c1
to
83d7a3e
Compare
thank you! |
Hi! @edenhill Thanks! |
When built as a static library on Win32, zstd has output names like zstd_static.lib (Release) and zstd_staticd.lib (Debug):
https://github.com/facebook/zstd/blob/69baaee3e42f90dedea2c946bc19bfeac4e782ee/build/cmake/lib/CMakeLists.txt#L141
and
find_library(ZSTD zstd)
will not work in such cases.