From 58f9d72483c6b913b6b11a8228548b17dcf9117d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 27 Jun 2025 16:13:29 -0600 Subject: [PATCH] Use C++ compiler for compile and link checks. --- cmake/configure/configure_50_scalapack.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/configure/configure_50_scalapack.cmake b/cmake/configure/configure_50_scalapack.cmake index 40d6ca4326..e68f7b5703 100644 --- a/cmake/configure/configure_50_scalapack.cmake +++ b/cmake/configure/configure_50_scalapack.cmake @@ -29,16 +29,16 @@ macro(feature_scalapack_find_external var) if (${var}) clear_cmake_required() set(CMAKE_REQUIRED_LIBRARIES ${SCALAPACK_LIBRARIES} ${LAPACK_LIBRARIES}) - CHECK_C_SOURCE_COMPILES(" - void pdsyevr_(); - void pssyevr_(); + CHECK_CXX_SOURCE_COMPILES(" + extern \"C\" void pdsyevr_(); + extern \"C\" void pssyevr_(); int main(){ pdsyevr_(); pssyevr_(); return 0; }" DEAL_II_SCALAPACK_HAS_PDSYEVR_PSSYEVR) - reset_cmake_required() + reset_cmake_required() if(NOT DEAL_II_SCALAPACK_HAS_PDSYEVR_PSSYEVR) message(STATUS "Could not find a sufficient SCALAPACK installation: " -- 2.39.5