-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add CMake support for RHash #103
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
I have issues cross compiling static stuff, this might help This should be merged, if we believe in true justice ... |
CMakeLists.txt
Outdated
|
||
option(USE_GETTEXT "Enable gettext (localization) support") | ||
|
||
set(SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/calc_sums.c" |
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.
no need for CMAKE_CURRENT_SOURCE_DIR, files are always relative to the source dir
librhash/CMakeLists.txt
Outdated
option(USE_OPENSSL "Enable OpenSSL (optimized hash functions) support") | ||
option(OPENSSL_RUNTIME "Load OpenSSL at runtime if present") | ||
|
||
set(SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/algorithms.c" |
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
librhash/CMakeLists.txt
Outdated
install(TARGETS ${PROJECT_NAME} | ||
EXPORT ${CMAKE_PROJECT_NAME}Config | ||
RUNTIME DESTINATION bin | ||
LIBRARY DESTINATION lib |
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.
if you use gnuinstalldirs then you can use CMAKE_INSTALL_LIBDIR/BINDIR/INCLUDEDIR
librhash/CMakeLists.txt
Outdated
|
||
include(GNUInstallDirs) | ||
|
||
if(MSVC OR MSVC90 OR MSVC10) |
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.
MSVC90/MSVC10 already imply MSVC
librhash/CMakeLists.txt
Outdated
include(GNUInstallDirs) | ||
|
||
if(MSVC OR MSVC90 OR MSVC10) | ||
set(MSVC ON) |
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.
uneeded
Signed-off-by: Uilian Ries <[email protected]>
The build scripts in the project are quite non-standard and not too portable. Based on rhash/RHash#103
The build scripts in the project are quite non-standard and not too portable. Based on rhash/RHash#103
Hi!
This PR brings two CMake files which can build the library and executable.
I see you are running semaphore to build this project, but I can't update it locally, so you can update your script with:
Regards!