Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
since update, flang is now identified as flang by cmake, and not pgi anymore
authorAugustin Degomme <augustin.degomme@unibas.ch>
Sat, 24 Feb 2018 10:15:01 +0000 (11:15 +0100)
committerAugustin Degomme <augustin.degomme@unibas.ch>
Sat, 24 Feb 2018 10:15:01 +0000 (11:15 +0100)
CMakeLists.txt

index de8f25d..51590bc 100644 (file)
@@ -90,7 +90,7 @@ if ((NOT DEFINED enable_smpi) OR enable_smpi)
     elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
       set(SMPI_Fortran_FLAGS "\"-fPIC\" \"-nofor-main\"")
       set(SMPI_Fortran_LIBS "\"-lifcore\"")
     elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
       set(SMPI_Fortran_FLAGS "\"-fPIC\" \"-nofor-main\"")
       set(SMPI_Fortran_LIBS "\"-lifcore\"")
-    elseif(CMAKE_Fortran_COMPILER_ID MATCHES "PGI") # flang
+    elseif(CMAKE_Fortran_COMPILER_ID MATCHES "PGI|Flang") # flang
       set(SMPI_Fortran_FLAGS "\"-fPIC\"")
       set(SMPI_Fortran_LIBS "")
     endif()
       set(SMPI_Fortran_FLAGS "\"-fPIC\"")
       set(SMPI_Fortran_LIBS "")
     endif()