MINGW-packages/mingw-w64-mctc-lib/002-fix-build-with-flang.patch
مهدي شينون (Mehdi Chinoune) e830094464 mctc-lib: Fix build with flang
2025-02-01 11:30:16 +01:00

16 lines
435 B
Diff

--- a/config/CMakeLists.txt
+++ b/config/CMakeLists.txt
@@ -39,9 +39,9 @@
# 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