Skip to content
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

Need to update CMake policy #229

Closed
graeme-a-stewart opened this issue Jun 21, 2023 · 0 comments · Fixed by #230
Closed

Need to update CMake policy #229

graeme-a-stewart opened this issue Jun 21, 2023 · 0 comments · Fixed by #230
Assignees
Labels
enhancement New feature or request externals Issues for studies of other packages that prmon could use
Milestone

Comments

@graeme-a-stewart
Copy link
Member

Our cmake step triggers now the following warning:

CMake Warning (dev) at /home/graemes/.local/cmake-3.26.4-linux-x86_64/share/cmake-3.26/Modules/FetchContent.cmake:1282 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
  download, the timestamps of extracted files should preferably be that of
  the time of extraction, otherwise code that depends on the extracted
  contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
  what you want.  Update your project to the NEW behavior or specify the
  DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
  robustness issue.
Call Stack (most recent call first):
  package/tests/CMakeLists.txt:20 (FetchContent_Declare)
This warning is for project developers.  Use -Wno-dev to suppress it.

This should be fixed by adding the DOWNLOAD_EXTRACT_TIMESTAMP OFF when external packages are downloaded.

@graeme-a-stewart graeme-a-stewart added enhancement New feature or request externals Issues for studies of other packages that prmon could use labels Jun 21, 2023
@graeme-a-stewart graeme-a-stewart self-assigned this Jun 21, 2023
@graeme-a-stewart graeme-a-stewart added this to the v3.1 milestone Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request externals Issues for studies of other packages that prmon could use
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant