-
Notifications
You must be signed in to change notification settings - Fork 95
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
Enable LIBOQS_DIR
as cache entry and environment variable.
#275
Conversation
77aac2b
to
7c39459
Compare
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.
Thanks very much for all this work, particularly the new CI test for this "chose any capitalization" feature -- I'm just not sure why it's "green": When looking at it, it seems to have failed, e.g. open "Test oqsprovider" twisty at https://github.com/open-quantum-safe/oqs-provider/actions/runs/6430477110/job/17461513594 (?)
Fix #273 `liboqs_DIR` is a CMake cache entry to hint CMake about the location of liboqs CMake package. However, being able to use `LIBOQS_DIR` (full capitalized) would be more convenient. This PR adds the ability to use either `liboqs_DIR` as a cache entry, `liboqs_DIR` as an environment variable, `LIBOQS_DIR` as a cache entry and `LIBOQS_DIR` as an env variable. Tests were also added to make sure that these variables are well taken by CMake during the configuration stage.
I'm testing cases where About
I think it's due to the fact that I'm using |
Not the right thing :-/ Besides, why doesn't this get reported as a CI error? And: Would an actual build and test not be prudent? |
I've tried running this with multiple build commands and none of them work, even the one that did previously. Usually I put the liboqs_DIR env var before the cmake command, but I also tried putting it inline as well (though this has never worked for me even on main). Here's the four commands and tried and the error (red text) associated with each of them
|
Well, previously we were using |
No problem. Indeed we're trying to go against CMake conventions here. We may better keep the current variable as it follows CMake rules. Another "solution": if Note that |
Fully agree. Do you want to update this PR (maybe just add a documentation clarification instead of the new code) or just close it? |
I'll close this one since I've cross-referenced it with the issue. Thank you! |
Fix #273
liboqs_DIR
is a CMake cache entry to hint CMake about the location of liboqsCMake package.
However, being able to use
LIBOQS_DIR
(full capitalized) would be moreconvenient.
This PR adds the ability to use either
liboqs_DIR
as a cache entry,liboqs_DIR
as an environment variable,
LIBOQS_DIR
as a cache entry andLIBOQS_DIR
as an env variable.
Tests were also added to make sure that these variables are well taken
by CMake during the configuration stage.