Skip to content

Commit 8d3ae00

Browse files
committed
Do not check the FortranCInterface if LAPACKE is not built.
1 parent f40d220 commit 8d3ae00

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

LAPACKE/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
if(NOT LAPACKE)
2+
return()
3+
endif()
4+
5+
16
# Create a header file lapacke_mangling.h for the routines called in my C programs
27
include(FortranCInterface)
38
## Ensure that the fortran compiler and c compiler specified are compatible
@@ -14,11 +19,6 @@ endif()
1419
add_subdirectory(include)
1520

1621

17-
if(NOT LAPACKE)
18-
return()
19-
endif()
20-
21-
2222
message(STATUS "LAPACKE enabled")
2323
enable_language(C)
2424

0 commit comments

Comments
 (0)