Skip to content

Fix CMAKE_PARENT_LIST_FILE issues#2949

Merged
dweindl merged 1 commit intoAMICI-dev:mainfrom
dweindl:fix_cmake_410
Sep 19, 2025
Merged

Fix CMAKE_PARENT_LIST_FILE issues#2949
dweindl merged 1 commit intoAMICI-dev:mainfrom
dweindl:fix_cmake_410

Conversation

@dweindl
Copy link
Member

@dweindl dweindl commented Sep 18, 2025

CMAKE_PARENT_LIST_FILE produces inconsistent paths in different cmake versions. Unclear. Don't use it.

Fixes

CMake Error at cmake/version.cmake:16 (file):
  file STRINGS file "/home/runner/work/AMICI/version.txt" cannot be read.

(https://github.com/AMICI-dev/AMICI/actions/runs/17787055064/job/50556532173)

@dweindl dweindl changed the title Fix CMAKE_PARENT_LIST_FILE errors with cmake>=4.1.0 Fix CMAKE_PARENT_LIST_FILE issues Sep 18, 2025
@codecov
Copy link

codecov bot commented Sep 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.40%. Comparing base (c5890ce) to head (1f76abe).
⚠️ Report is 135 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2949      +/-   ##
==========================================
- Coverage   79.41%   79.40%   -0.01%     
==========================================
  Files         362      362              
  Lines       23183    23183              
  Branches     1588     1588              
==========================================
- Hits        18410    18409       -1     
- Misses       4761     4762       +1     
  Partials       12       12              
Flag Coverage Δ
cpp 76.13% <ø> (+0.57%) ⬆️
cpp_python 32.93% <ø> (ø)
petab 38.49% <ø> (ø)
python 74.21% <ø> (+0.59%) ⬆️
sbmlsuite-jax ?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 8 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

`CMAKE_PARENT_LIST_FILE` produces inconsistent paths in different cmake versions. Unclear. Don't use it.

Fixes
```
CMake Error at cmake/version.cmake:16 (file):
  file STRINGS file "/home/runner/work/AMICI/version.txt" cannot be read.
```
@dweindl dweindl marked this pull request as ready for review September 18, 2025 20:34
@dweindl dweindl requested a review from a team as a code owner September 18, 2025 20:34
@dweindl dweindl enabled auto-merge September 18, 2025 20:35
@dweindl dweindl self-assigned this Sep 18, 2025
@dweindl dweindl added this pull request to the merge queue Sep 19, 2025
Merged via the queue into AMICI-dev:main with commit 1b88ab4 Sep 19, 2025
19 checks passed
@dweindl dweindl deleted the fix_cmake_410 branch September 19, 2025 15:03
dweindl added a commit to dweindl/AMICI that referenced this pull request Nov 2, 2025
`CMAKE_PARENT_LIST_FILE` produces inconsistent paths in different cmake versions. Unclear. Don't use it.

Fixes
```
CMake Error at cmake/version.cmake:16 (file):
  file STRINGS file "/home/runner/work/AMICI/version.txt" cannot be read.
```
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