I’m having a problem with PETSc (obtained via GitLab): the installation seems to go well, but when I run CMake on my code, it crashes in FindPackageMultipass.cmake. The line highlighted in red below never completes, with testname=MULTIPASS_TEST_4_petsc_works_all.

Do you have any idea what is wrong?

Thank you

Julien


/macro (MULTIPASS_SOURCE_RUNS i/

/ncludes libraries source runs language)/

/include (Check${language}SourceRuns)/

/# This is a ridiculous hack. CHECK_${language}_SOURCE_* thinks that if the/

/# *name* of the return variable doesn't change, then the test does/

/# not need to be re-run. We keep an internal count which we/

/# increment to guarantee that every test name is unique. If we've/

/# gotten here, then the configuration has changed enough that the/

/# test *needs* to be rerun./

/if (NOT MULTIPASS_TEST_COUNT)/

/set (MULTIPASS_TEST_COUNT 00)/

/endif (NOT MULTIPASS_TEST_COUNT)/

/math (EXPR _tmp "${MULTIPASS_TEST_COUNT} + 1") # Why can't I add to a cache variable?/

/set (MULTIPASS_TEST_COUNT ${_tmp} CACHE INTERNAL "Unique test ID")/

/set (testname MULTIPASS_TEST_${MULTIPASS_TEST_COUNT}_${runs})/

/set (CMAKE_REQUIRED_INCLUDES ${includes})/

/set (CMAKE_REQUIRED_LIBRARIES ${libraries})/

/if(${language} STREQUAL "C")/

/check_c_source_runs ("${source}" ${testname})  # /testname=MULTIPASS_TEST_4_petsc_works_all

/elseif(${language} STREQUAL "CXX")/

/check_cxx_source_runs ("${source}" ${testname})/

/endif()/

/set (${runs} "${${testname}}")/

/endmacro (MULTIPASS_SOURCE_RUNS)/


Reply via email to