|
|
|
@@ -12,8 +12,10 @@ FortranCInterface_HEADER(${LAPACK_BINARY_DIR}/include/cblas_mangling.h |
|
|
|
SYMBOL_NAMESPACE "F77_") |
|
|
|
if(NOT FortranCInterface_GLOBAL_FOUND OR NOT FortranCInterface_MODULE_FOUND) |
|
|
|
message(WARNING "Reverting to pre-defined include/lapacke_mangling.h") |
|
|
|
configure_file(include/lapacke_mangling_with_flags.h.in |
|
|
|
${LAPACK_BINARY_DIR}/include/lapacke_mangling.h) |
|
|
|
configure_file(include/lapacke_mangling_with_flags.h.in |
|
|
|
${LAPACK_BINARY_DIR}/include/lapacke_mangling.h) |
|
|
|
configure_file(include/cblas_mangling_with_flags.h.in |
|
|
|
${LAPACK_BINARY_DIR}/include/cblas_mangling.h) |
|
|
|
endif() |
|
|
|
|
|
|
|
include_directories(include ${LAPACK_BINARY_DIR}/include) |
|
|
|
@@ -28,7 +30,10 @@ endforeach() |
|
|
|
endmacro() |
|
|
|
|
|
|
|
append_subdir_files(CBLAS_INCLUDE "include") |
|
|
|
install(FILES ${CBLAS_INCLUDE} ${LAPACK_BINARY_DIR}/include/cblas_mangling.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) |
|
|
|
install(FILES ${CBLAS_INCLUDE} ${LAPACK_BINARY_DIR}/include/cblas_mangling.h |
|
|
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} |
|
|
|
COMPONENT Development |
|
|
|
) |
|
|
|
|
|
|
|
# -------------------------------------------------- |
|
|
|
if(BUILD_TESTING) |
|
|
|
@@ -45,7 +50,9 @@ endif() |
|
|
|
set(_cblas_config_install_guard_target "") |
|
|
|
if(ALL_TARGETS) |
|
|
|
install(EXPORT cblas-targets |
|
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cblas-${LAPACK_VERSION}) |
|
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cblas-${LAPACK_VERSION} |
|
|
|
COMPONENT Development |
|
|
|
) |
|
|
|
# Choose one of the cblas targets to use as a guard for |
|
|
|
# cblas-config.cmake to load targets from the install tree. |
|
|
|
list(GET ALL_TARGETS 0 _cblas_config_install_guard_target) |
|
|
|
@@ -82,4 +89,6 @@ install(FILES |
|
|
|
) |
|
|
|
|
|
|
|
#install(EXPORT cblas-targets |
|
|
|
# DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cblas-${LAPACK_VERSION}) |
|
|
|
# DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cblas-${LAPACK_VERSION} |
|
|
|
# COMPONENT Development |
|
|
|
# ) |