Update LAPACK to 3.9.0
This commit is contained in:
parent
9854d7fc07
commit
6d9ff11919
|
@ -12,8 +12,10 @@ FortranCInterface_HEADER(${LAPACK_BINARY_DIR}/include/cblas_mangling.h
|
||||||
SYMBOL_NAMESPACE "F77_")
|
SYMBOL_NAMESPACE "F77_")
|
||||||
if(NOT FortranCInterface_GLOBAL_FOUND OR NOT FortranCInterface_MODULE_FOUND)
|
if(NOT FortranCInterface_GLOBAL_FOUND OR NOT FortranCInterface_MODULE_FOUND)
|
||||||
message(WARNING "Reverting to pre-defined include/lapacke_mangling.h")
|
message(WARNING "Reverting to pre-defined include/lapacke_mangling.h")
|
||||||
configure_file(include/lapacke_mangling_with_flags.h.in
|
configure_file(include/lapacke_mangling_with_flags.h.in
|
||||||
${LAPACK_BINARY_DIR}/include/lapacke_mangling.h)
|
${LAPACK_BINARY_DIR}/include/lapacke_mangling.h)
|
||||||
|
configure_file(include/cblas_mangling_with_flags.h.in
|
||||||
|
${LAPACK_BINARY_DIR}/include/cblas_mangling.h)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(include ${LAPACK_BINARY_DIR}/include)
|
include_directories(include ${LAPACK_BINARY_DIR}/include)
|
||||||
|
@ -28,7 +30,10 @@ endforeach()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
append_subdir_files(CBLAS_INCLUDE "include")
|
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)
|
if(BUILD_TESTING)
|
||||||
|
@ -45,7 +50,9 @@ endif()
|
||||||
set(_cblas_config_install_guard_target "")
|
set(_cblas_config_install_guard_target "")
|
||||||
if(ALL_TARGETS)
|
if(ALL_TARGETS)
|
||||||
install(EXPORT cblas-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
|
# Choose one of the cblas targets to use as a guard for
|
||||||
# cblas-config.cmake to load targets from the install tree.
|
# cblas-config.cmake to load targets from the install tree.
|
||||||
list(GET ALL_TARGETS 0 _cblas_config_install_guard_target)
|
list(GET ALL_TARGETS 0 _cblas_config_install_guard_target)
|
||||||
|
@ -82,4 +89,6 @@ install(FILES
|
||||||
)
|
)
|
||||||
|
|
||||||
#install(EXPORT cblas-targets
|
#install(EXPORT cblas-targets
|
||||||
# DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cblas-${LAPACK_VERSION})
|
# DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cblas-${LAPACK_VERSION}
|
||||||
|
# COMPONENT Development
|
||||||
|
# )
|
||||||
|
|
|
@ -1,19 +1,25 @@
|
||||||
include ../make.inc
|
TOPSRCDIR = ..
|
||||||
|
include $(TOPSRCDIR)/make.inc
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
all: cblas
|
all: cblas
|
||||||
|
|
||||||
|
.PHONY: cblas
|
||||||
cblas: include/cblas_mangling.h
|
cblas: include/cblas_mangling.h
|
||||||
$(MAKE) -C src
|
$(MAKE) -C src
|
||||||
|
|
||||||
include/cblas_mangling.h: include/cblas_mangling_with_flags.h.in
|
include/cblas_mangling.h: include/cblas_mangling_with_flags.h.in
|
||||||
cp $< $@
|
cp include/cblas_mangling_with_flags.h.in $@
|
||||||
|
|
||||||
|
.PHONY: cblas_testing
|
||||||
cblas_testing: cblas
|
cblas_testing: cblas
|
||||||
$(MAKE) -C testing run
|
$(MAKE) -C testing run
|
||||||
|
|
||||||
|
.PHONY: cblas_example
|
||||||
cblas_example: cblas
|
cblas_example: cblas
|
||||||
$(MAKE) -C examples
|
$(MAKE) -C examples
|
||||||
|
|
||||||
|
.PHONY: clean cleanobj cleanlib cleanexe cleantest
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -C src clean
|
$(MAKE) -C src clean
|
||||||
$(MAKE) -C testing clean
|
$(MAKE) -C testing clean
|
||||||
|
|
Loading…
Reference in New Issue