-
Notifications
You must be signed in to change notification settings - Fork 81
Add CMake #8
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
base: main
Are you sure you want to change the base?
Add CMake #8
Conversation
…ache}.c] Resolve some warnings
…fo.h.in (reverse-engineering Makefile) ; add OpenSSL ; [CMakeLists.txt] Disable OpenSSL if flag provided ; [README.md] Add guide for using CMake
…s.txt] Add flags to better reflect project requirements ; [src/*.c] Minor changes to get it to build with no warnings
…`NOURING`) ; [README.md] Bump version
CMakeLists.txt
Outdated
| if (APPLE) | ||
| set(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Info.plist") | ||
| set(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Info.plist") | ||
| set(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/cmake/CustomVolumeIcon.icns") |
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.
Why binary file CustomVolumeIcon.icns is needed? Can it be generated somehow not to put binary blobs to Git?
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.
Oh it's just from the tutorial; it makes it easy for you to replace it with the icon for pogocache
# Conflicts: # README.md
| assert(status == POGOCACHE_INSERTED || status == POGOCACHE_REPLACED); | ||
| if (conn_proto(conn) == PROTO_POSTGRES) { | ||
| char val[24]; | ||
| char buf1[24]; |
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.
Are the renamings only cosmetic?
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.
Same function two vars:
https://github.com/tidwall/pogocache/blob/0c94bbb/src/cmds.c#L1562
https://github.com/tidwall/pogocache/blob/0c94bbb/src/cmds.c#L1584
I.e., variable shadowing
Closes #6