-
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
add support for the CMAKE_PARAMS environment variable #510
Conversation
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 for the contribution, @jschauma . Basically LGTM. Just one nit: What's the advantage of naming this variable "CMAKE_FLAGS"? The name "CMAKE_PARAMS" would be more in line with its "sibling" parameters... If you'd agree, please just update the PR, I'd squash-merge afterwards.
Ah, and please "sign" your commit (option |
Signed-off-by: Jan Schaumann <[email protected]>
Ok, just 'git commit -s'd the s/FLAGS/PARAMS/ change. |
@jschauma does it mean that it becomes possible to build all the chain (openssl => liboqs => oqs-provider) without installing the previous components? |
I had installed OpenSSL manually into
and that built liboqs and oqs-provider successfully. I didn't test having |
This precisely is the purpose of the script from the start (and it is used in this way in CI to build-test the chain). The most important env var to set IMO, though, is OPENSSL_BRANCH: If not set, any openssl (>=3.0) available will be used and no from-scratch build is done. |
Thanks for merging! |
Thanks for improving the system! |
I was unable to convince
fullbuild.sh
to use the right OpenSSL library from/opt/lib64
by settingOPENSSL_ROOT_DIR=/opt
nor by settingOPENSSL_INSTALL=/opt
or other variations I tried. It seemed I needed to invokecmake
with-DOPENSSL_CRYPTO_LIBRARY="/opt/lib64/libcrypto.so"
, but there was no obvious way to get this flag passed into the script.Adding a generic
CMAKE_FLAGS
environment variable allows me to pass this flag and would allow others to set additional flags they might need, and falls in line with common Unix practice of supporting e.g.,CFLAGS
,LDFLAGS
etc.Perhaps this is useful to somebody else.