Skip to content

try_compile hides useful information when it fails #649

@Sbozzolo

Description

@Sbozzolo

Sometimes, builds fail for errors like

-- PETSc test program - Failed
-- PETSc test program with static linkage - Failed
CMake Error at CMakeLists.txt:252 (message):
  PETSc could not be found, be sure to set PETSC_DIR

This error message is not useful. The real error can be found in palace-build/CMakeFiles/CMakeConfigureLog.yaml. It would be useful to surface this error to the main log so that we can easily diagnose what is going on (e.g., in CI).

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildRelated to buildingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions