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()
392392set (LAPACK_INSTALL_EXPORT_NAME ${LAPACK_INSTALL_EXPORT_NAME_CACHE} )
393393unset (LAPACK_INSTALL_EXPORT_NAME_CACHE)
394394
395- if (LAPACKE)
396- add_subdirectory (LAPACKE)
397- endif ()
395+ add_subdirectory (LAPACKE)
396+
398397
399398#-------------------------------------
400399# 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-
61# Create a header file lapacke_mangling.h for the routines called in my C programs
72include (FortranCInterface)
83## 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)
1611 ${LAPACK_BINARY_DIR} /include /lapacke_mangling.h)
1712endif ()
1813
19- include_directories (include ${LAPACK_BINARY_DIR} /include )
2014add_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 )
2128add_subdirectory (src)
2229add_subdirectory (utils)
2330
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 ()
26
37file (COPY ${LAPACKE_INCLUDE} DESTINATION ${LAPACK_BINARY_DIR} /include )
You can’t perform that action at this time.
0 commit comments