Flang: Do not use -isystem with classic flang

Extend commit a8e7a1047a (GNU: Do not use -isystem with gfortran,
2015-03-26, v3.3.0-rc1~292^2) to cover classic Flang too.  It does
not search system include directories for Fortran `.mod` files.
This commit is contained in:
Zhiqiang Chen
2026-08-25 14:06:59 -04:00
committed by Brad King
parent 65e2e7690e
commit 5d2974974b
+3
View File
@@ -1,6 +1,9 @@
include(Compiler/Clang)
__compiler_clang(Fortran)
# No -isystem for Fortran because it will not find .mod files.
unset(CMAKE_INCLUDE_SYSTEM_FLAG_Fortran)
set(CMAKE_Fortran_SUBMODULE_SEP "-")
set(CMAKE_Fortran_SUBMODULE_EXT ".mod")