-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
check_library_exists cannot find snappy package correctly #1146
Comments
I'm having the same issue. I build both snappy and leveldb using FetchContent, and to solve this currently, I am setting It seems to work however I assume that this is dependent on snappy building before leveldb to work. Here is my I can see that Would love to know if there is a proper way to build both snappy & leveldb in my project and have them link correctly. |
I manually compiled and installed snappy 1.10 from source, then I tried to use cmake to compile levelDB, but it still prompted that it could not find snappy_compress, and compression would not be performed at runtime. The cmake prompt is as follows:
If I manually modify CMakeLists.txt and set
HAVE_SNAPPY
on line 42 toON
, the compilation can succeed, and the compression function can run normally.The following is the output in CMakeError.log (I don’t know if this is related to the problem):
The text was updated successfully, but these errors were encountered: