Commit e6ac719
committed
Add version detection from fftw-wisdom-to-conf when pkg-config is not used
When `pkg-config` is not found or `FFTW_ROOT` is set, the version of FFTW was not determined. This commit adds a fallback that attempts to extract the version from the `fftw-wisdom-to-conf` binary using its `-V` flag. If the command fails, a warning is issued with the output and error messages.
The assignment of `FFTW_VERSION` is now conditional: it is set from `pkg-config` results only when available, and otherwise from the fallback method. This ensures the version variable is only populated when a reliable source is found.1 parent a8c0d0d commit e6ac719
1 file changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
51 | 73 | | |
52 | 74 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 75 | | |
57 | 76 | | |
58 | 77 | | |
| |||
0 commit comments