summaryrefslogtreecommitdiff
path: root/share/cmake-3.18/Modules/CheckIPOSupported/CMakeLists-Fortran.txt.in
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.18/Modules/CheckIPOSupported/CMakeLists-Fortran.txt.in')
-rw-r--r--share/cmake-3.18/Modules/CheckIPOSupported/CMakeLists-Fortran.txt.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/cmake-3.18/Modules/CheckIPOSupported/CMakeLists-Fortran.txt.in b/share/cmake-3.18/Modules/CheckIPOSupported/CMakeLists-Fortran.txt.in
new file mode 100644
index 0000000..9fab077
--- /dev/null
+++ b/share/cmake-3.18/Modules/CheckIPOSupported/CMakeLists-Fortran.txt.in
@@ -0,0 +1,8 @@
+cmake_minimum_required(VERSION "@CMAKE_VERSION@")
+project("@TRY_COMPILE_PROJECT_NAME@" LANGUAGES Fortran)
+
+cmake_policy(SET CMP0069 NEW)
+
+add_library(foo foo.f)
+add_executable(boo main.f)
+target_link_libraries(boo PUBLIC foo)