Skip to content

Surface try_compile/try_run errors in CMake configure output#650

Draft
hughcars wants to merge 1 commit intomainfrom
hughcars/surface-try-compile-errors
Draft

Surface try_compile/try_run errors in CMake configure output#650
hughcars wants to merge 1 commit intomainfrom
hughcars/surface-try-compile-errors

Conversation

@hughcars
Copy link
Collaborator

When PETSc, SLEPc, or std::filesystem test programs fail during configure, the error is hidden in CMakeConfigureLog.yaml. The user only sees:

-- PETSc test program - Failed
CMake Error: PETSc could not be found, be sure to set PETSC_DIR

This prints the actual compiler/linker error (or runtime error) to the main configure log on failure. The libCEED check already did this; PETSc, SLEPc, and std::filesystem did not.

Closes #649

@hughcars hughcars requested a review from Sbozzolo February 23, 2026 18:52
@hughcars hughcars force-pushed the hughcars/surface-try-compile-errors branch from d6d78c3 to 792a5e4 Compare February 23, 2026 19:01
When PETSc, SLEPc, or std::filesystem test programs fail to compile or
run, the actual error was hidden in CMakeConfigureLog.yaml. Print the
compile or run output to the main log on failure, matching the pattern
already used by the libCEED test.

Closes #649
@hughcars hughcars force-pushed the hughcars/surface-try-compile-errors branch from 792a5e4 to 927e271 Compare March 12, 2026 21:35
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.

try_compile hides useful information when it fails

1 participant