Skip to content

Commit

Permalink
build(cmake): fix compiler detection logic (#70)
Browse files Browse the repository at this point in the history
the condition wrongly matched LLVMFlang (flang-new), which does not
support -Mbackslash and -Mallocatable=03.
https://cmake.org/cmake/help/v3.24/variable/CMAKE_LANG_COMPILER_ID.html
  • Loading branch information
e-kwsm authored Aug 31, 2024
1 parent 769fbfa commit 6e3089c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ install(

# Compiler-specific configurations
if(
CMAKE_Fortran_COMPILER_ID MATCHES "PGI"
OR CMAKE_Fortran_COMPILER_ID MATCHES "NVHPC"
OR CMAKE_Fortran_COMPILER_ID MATCHES "Flang"
"${CMAKE_Fortran_COMPILER_ID}" STREQUAL "PGI"
OR "${CMAKE_Fortran_COMPILER_ID}" STREQUAL "NVHPC"
OR "${CMAKE_Fortran_COMPILER_ID}" STREQUAL "Flang"
)
set(
CMAKE_Fortran_FLAGS
Expand Down

0 comments on commit 6e3089c

Please sign in to comment.