]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use C++ compiler for compile and link checks. 18595/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 27 Jun 2025 22:13:29 +0000 (16:13 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 27 Jun 2025 22:13:29 +0000 (16:13 -0600)
cmake/configure/configure_50_scalapack.cmake

index 40d6ca43263ace2369224fb12317e6d3c1c6016b..e68f7b570378dd014629ab3477ae64b0d48d738a 100644 (file)
@@ -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: "

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.