File tree Expand file tree Collapse file tree 3 files changed +20
-10
lines changed Expand file tree Collapse file tree 3 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -392,9 +392,8 @@ endif()
392
392
set (LAPACK_INSTALL_EXPORT_NAME ${LAPACK_INSTALL_EXPORT_NAME_CACHE} )
393
393
unset (LAPACK_INSTALL_EXPORT_NAME_CACHE )
394
394
395
- if (LAPACKE )
396
- add_subdirectory (LAPACKE )
397
- endif ()
395
+ add_subdirectory (LAPACKE )
396
+
398
397
399
398
#-------------------------------------
400
399
# BLAS++ / LAPACK++
Original file line number Diff line number Diff line change 1
- message (STATUS "LAPACKE enable" )
2
- enable_language (C )
3
-
4
- set (LAPACK_INSTALL_EXPORT_NAME ${LAPACKELIB} -targets )
5
-
6
1
# Create a header file lapacke_mangling.h for the routines called in my C programs
7
2
include (FortranCInterface )
8
3
## Ensure that the fortran compiler and c compiler specified are compatible
@@ -16,8 +11,20 @@ if(NOT FortranCInterface_GLOBAL_FOUND OR NOT FortranCInterface_MODULE_FOUND)
16
11
${LAPACK_BINARY_DIR} /include/lapacke_mangling.h )
17
12
endif ()
18
13
19
- include_directories (include ${LAPACK_BINARY_DIR} /include )
20
14
add_subdirectory (include )
15
+
16
+
17
+ if (NOT LAPACKE )
18
+ return ()
19
+ endif ()
20
+
21
+
22
+ message (STATUS "LAPACKE enabled" )
23
+ enable_language (C )
24
+
25
+ set (LAPACK_INSTALL_EXPORT_NAME ${LAPACKELIB} -targets )
26
+
27
+ include_directories (include ${LAPACK_BINARY_DIR} /include )
21
28
add_subdirectory (src )
22
29
add_subdirectory (utils )
23
30
Original file line number Diff line number Diff line change 1
- set (LAPACKE_INCLUDE lapacke.h lapack.h lapacke_config.h lapacke_utils.h )
1
+ set (LAPACKE_INCLUDE lapack.h )
2
+
3
+ IF (LAPACKE )
4
+ list (APPEND LAPACKE_INCLUDE lapacke.h lapacke_config.h lapacke_utils.h )
5
+ endif ()
2
6
3
7
file (COPY ${LAPACKE_INCLUDE} DESTINATION ${LAPACK_BINARY_DIR} /include )
You can’t perform that action at this time.
0 commit comments