Skip to content

Fix cmake warnings related to unused variables - #295

Merged
pshipton merged 1 commit into
ibmruntimes:openj9from
keithc-ca:cmake_vars
May 9, 2025
Merged

Fix cmake warnings related to unused variables#295
pshipton merged 1 commit into
ibmruntimes:openj9from
keithc-ca:cmake_vars

Conversation

@keithc-ca

Copy link
Copy Markdown
Member

Newer versions of cmake (e.g. 3.22.1) warn:

  Manually-specified variables were not used by the project:
    OPENJDK_VERSION_NUMBER_FOUR_POSITIONS
    OPENSSL_CFLAGS
  • only specify OPENJDK_VERSION_NUMBER_FOUR_POSITIONS on Windows
  • remove unused definition of OPENSSL_CFLAGS

Adjust OpenSSL build to avoid overwriting OPENSSL_CFLAGS.

This is a back-port of ibmruntimes/openj9-openjdk-jdk#1009.

Newer versions of cmake (e.g. 3.22.1) warn:
  Manually-specified variables were not used by the project:
    OPENJDK_VERSION_NUMBER_FOUR_POSITIONS
    OPENSSL_CFLAGS

* only specify OPENJDK_VERSION_NUMBER_FOUR_POSITIONS on Windows
* remove unused definition of OPENSSL_CFLAGS

Adjust OpenSSL build to avoid overwriting OPENSSL_CFLAGS.

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
@keithc-ca
keithc-ca requested a review from pshipton May 9, 2025 16:45
@pshipton
pshipton merged commit 1c62980 into ibmruntimes:openj9 May 9, 2025
@keithc-ca
keithc-ca deleted the cmake_vars branch May 9, 2025 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants