summaryrefslogtreecommitdiffstats
path: root/Tests/FortranOnly
diff options
context:
space:
mode:
authorChristoph Junghans <junghans@votca.org>2024-01-25 20:10:54 (GMT)
committerBrad King <brad.king@kitware.com>2024-07-22 20:50:33 (GMT)
commit98d0f918ba74003bd66f4d12d8bcbe69b945caf2 (patch)
tree197a558c8d4779d1d0ebb4ae068b98632a7de92f /Tests/FortranOnly
parentc6f81bdacfeb2e99771ec4a5750964fee5e97dd3 (diff)
downloadCMake-98d0f918ba74003bd66f4d12d8bcbe69b945caf2.zip
CMake-98d0f918ba74003bd66f4d12d8bcbe69b945caf2.tar.gz
CMake-98d0f918ba74003bd66f4d12d8bcbe69b945caf2.tar.bz2
LFortran: Add support for this compiler
Fixes: #25419
Diffstat (limited to 'Tests/FortranOnly')
-rw-r--r--Tests/FortranOnly/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/FortranOnly/CMakeLists.txt b/Tests/FortranOnly/CMakeLists.txt
index 73312a0..e4a5019 100644
--- a/Tests/FortranOnly/CMakeLists.txt
+++ b/Tests/FortranOnly/CMakeLists.txt
@@ -7,6 +7,10 @@ if("${CMAKE_Fortran_COMPILER_ID};${CMAKE_Fortran_SIMULATE_ID}" MATCHES "^Intel(L
string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO " -Z7")
endif()
+if(CMAKE_Fortran_COMPILER_ID STREQUAL "LFortran")
+ add_compile_options(--implicit-interface)
+endif()
+
# create a library with hello and world functions
add_library(FortranOnlylib hello.f world.f)
set_property(TARGET FortranOnlylib PROPERTY Fortran_FORMAT FIXED)