summaryrefslogtreecommitdiffstats
path: root/Tests/FortranOnly
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-09-18 23:41:47 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-09-18 23:41:47 (GMT)
commit45513c1a69853372a1abf137adea262e5df7df71 (patch)
treee440a15251b612bf34f1d9186bcdd4f51b03a1fc /Tests/FortranOnly
parent7d3b4868d0306d4fcc430349241b5b78f76d543c (diff)
downloadCMake-45513c1a69853372a1abf137adea262e5df7df71.zip
CMake-45513c1a69853372a1abf137adea262e5df7df71.tar.gz
CMake-45513c1a69853372a1abf137adea262e5df7df71.tar.bz2
Tests/FortranModules: move issue 25112 fix from FortranOnly
It involves modules, so it belongs in the `FortranModules` test set.
Diffstat (limited to 'Tests/FortranOnly')
-rw-r--r--Tests/FortranOnly/CMakeLists.txt6
-rw-r--r--Tests/FortranOnly/objmain.f905
-rw-r--r--Tests/FortranOnly/objmod.f907
3 files changed, 0 insertions, 18 deletions
diff --git a/Tests/FortranOnly/CMakeLists.txt b/Tests/FortranOnly/CMakeLists.txt
index dfc28dd..02bf2b8 100644
--- a/Tests/FortranOnly/CMakeLists.txt
+++ b/Tests/FortranOnly/CMakeLists.txt
@@ -186,9 +186,3 @@ if(CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_OFF AND
set_property(SOURCE no_preprocess_source_upper.F no_preprocess_source_fpp.fpp PROPERTY Fortran_PREPROCESS OFF)
endif()
-
-# Issue 25112
-set(CMAKE_Fortran_MODULE_DIRECTORY "${PROJECT_BINARY_DIR}/include")
-add_library(objmod OBJECT objmod.f90)
-add_executable(objmain objmain.f90)
-target_link_libraries(objmain PRIVATE objmod)
diff --git a/Tests/FortranOnly/objmain.f90 b/Tests/FortranOnly/objmain.f90
deleted file mode 100644
index d41d454..0000000
--- a/Tests/FortranOnly/objmain.f90
+++ /dev/null
@@ -1,5 +0,0 @@
-program main
- use objmod, only : hello
- implicit none
- call hello()
-end program
diff --git a/Tests/FortranOnly/objmod.f90 b/Tests/FortranOnly/objmod.f90
deleted file mode 100644
index 6b79cc7..0000000
--- a/Tests/FortranOnly/objmod.f90
+++ /dev/null
@@ -1,7 +0,0 @@
-module objmod
- implicit none
-contains
- subroutine hello()
- print '(a)', "hello world"
- end subroutine hello
-end module objmod