Commit dbda0b1
committed
fix(cmake): correct Eigen source dir and Catch2 deprecation error
FetchContent lowercases the declared name, so the populated source
directory is eigen3_SOURCE_DIR. EIGEN3_INCLUDE_DIR was set from the
empty eigen_SOURCE_DIR, and the Eigen tests could not find Eigen/Core.
Catch2 2.13.10 asks for compatibility with CMake < 3.10. CMake 4 makes
this a deprecation warning, which -Werror=dev turns into an error and
stops the configure step. CMAKE_WARN_DEPRECATED cannot suppress it
because CMP0218 ignores that variable, so raise the policy floor for
the subproject instead.
Also set CATCH_VERSION, which all the Catch status messages report.
Assisted-by: ClaudeCode:claude-opus-51 parent 0e95794 commit dbda0b1
1 file changed
Lines changed: 17 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | 313 | | |
319 | | - | |
320 | | - | |
321 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
322 | 321 | | |
323 | 322 | | |
324 | 323 | | |
| |||
395 | 394 | | |
396 | 395 | | |
397 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
398 | 401 | | |
399 | | - | |
| 402 | + | |
| 403 | + | |
400 | 404 | | |
401 | | - | |
| 405 | + | |
402 | 406 | | |
403 | 407 | | |
404 | 408 | | |
405 | 409 | | |
406 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
407 | 414 | | |
408 | 415 | | |
409 | 416 | | |
| |||
0 commit comments