We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b2d457 commit 9de584aCopy full SHA for 9de584a
test/contiguous/CMakeLists.txt
@@ -1,5 +1,21 @@
1
set_property(DIRECTORY PROPERTY LABELS contiguous)
2
3
+check_fortran_source_compiles("
4
+program test
5
+implicit none
6
+real :: a(1)
7
+print '(L1)', is_contiguous(a)
8
+end program
9
+"
10
+HAVE_IS_CONTIGUOUS
11
+SRC_EXT f90
12
+)
13
+
14
+if(NOT HAVE_IS_CONTIGUOUS)
15
+ message(WARNING "Fortran compiler does not support is_contiguous")
16
+ return()
17
+endif()
18
19
add_library(contiguous_fortran ${PROJECT_SOURCE_DIR}/src/contiguous/contiguous.f90)
20
target_include_directories(contiguous_fortran INTERFACE ${PROJECT_SOURCE_DIR}/src/contiguous)
21
0 commit comments