LFortran: Add support for this compiler

Fixes: #25419
This commit is contained in:
Christoph Junghans
2024-01-25 13:10:54 -07:00
committed by Brad King
parent c6f81bdacf
commit 98d0f918ba
13 changed files with 61 additions and 3 deletions

View File

@@ -3,6 +3,10 @@ project(CheckIPOSupported-Fortran LANGUAGES Fortran)
cmake_policy(SET CMP0069 NEW)
if(CMAKE_Fortran_COMPILER_ID STREQUAL "LFortran")
add_compile_options(--implicit-interface)
endif()
include(CheckIPOSupported)
check_ipo_supported(RESULT ipo_supported OUTPUT ipo_output)
if(ipo_supported)