-
Notifications
You must be signed in to change notification settings - Fork 11
Add cmake "run" target and use it in PR CI #53
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
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3636629
evp_fetch: actually iterate on the fetch_entries array
Sashan aff5463
source/CMakeLists.txt: add run target
esyr c6762bd
.github/workflows/test.yml: execture cmake run target in CI runs
esyr 70c1376
.github/workflows/test.yml: add openssl-3.6 branch to CI test matrix
esyr 6a08460
.github/workflows/test.yml: do not build OpenSSL apps and tests
esyr 618a6c6
perflib: add perflib_print_version()
esyr 7071827
source: wire up the -V option to all tests
esyr f698212
evp_hash: exit successfully when called with -h option
esyr 14a349a
CMakeLists.txt: add run-version* targets
esyr 34e5d4e
.github/workflows/test.yml: print version information in a separate s…
esyr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| include(GetPrerequisites) | ||
|
|
||
| get_prerequisites(${TARGET_FILE} prereqs 1 1 "" "${SEARCH_PATHS}" "") | ||
|
|
||
| foreach(prereq ${prereqs}) | ||
| # Skipping already copied prerequisites | ||
| if(EXISTS "${TARGET_DIR}/${prereq}") | ||
| continue() | ||
| endif() | ||
|
|
||
| gp_resolve_item("" ${prereq} "" "${SEARCH_PATHS}" prereq_path) | ||
|
|
||
| if(prereq_path) | ||
| # A hack: we abuse configure_file()'s method of atomically updating | ||
| # the destination to minimise possible race conditions | ||
| configure_file("${prereq_path}" "${TARGET_DIR}/${prereq}" COPYONLY) | ||
| endif() | ||
| endforeach() | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Perhaps I'm missing something... why do we need this? I would expect cmake's file copy as I prefer to keep things simple. thanks.
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.
It's a CMake module[1] for getting a list of DLLs required by an executable, so they can be copied in the executable's directory. I tried
cmake -E copy_if_different, but was keeping hitting issues on concurrent runs, so opted forcopy_configurationinstead, as it first copied a file into a temporary path next to destination, does the comparison, and then a (supposedly atomic) rename (andcopy_if_differentseems to do comparison and then copy).[1] https://cmake.org/cmake/help/latest/module/GetPrerequisites.html
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.
OK thanks for clarification. IMO doing
copy $OPENSSL_SRC\*.dll $CMAKE_CURRENT_BINARY_DIRlike copy all ddls from OPENSSL directory to perftools build dir. The reason I prefer doing simple/sufficient thing over taking the right/correct approach is we will have to pay attention to cmake version more closely as the current code here uses deprecated API. Starting cmake 3.16 one should be using file(GET_RUNTIME_DEPENDENCIES).anyway. I think this should go in as-is. so we can get move 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.
Deprecated since version 3.16: Use file(GET_RUNTIME_DEPENDENCIES) instead.
Uh oh!
There was an error while loading. Please reload this page.
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.
Ideally, we can even use
$<TARGET_RUNTIME_DLLS>[1] (3.21+), but due tocmake_minimum_required(VERSION 3.10)we can't have nice things (while supporting pre-3.16/3.21 CMake, anyway).[1] https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html#genex:TARGET_RUNTIME_DLLS