mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
6fb3e5f176
Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style.
36 lines
634 B
CMake
36 lines
634 B
CMake
# include(FindLibraryWithDebug)
|
|
|
|
if (CBLAS_INCLUDES AND CBLAS_LIBRARIES)
|
|
set(CBLAS_FIND_QUIETLY TRUE)
|
|
endif ()
|
|
|
|
find_path(CBLAS_INCLUDES
|
|
NAMES
|
|
cblas.h
|
|
PATHS
|
|
$ENV{CBLASDIR}/include
|
|
${INCLUDE_INSTALL_DIR}
|
|
)
|
|
|
|
find_library(CBLAS_LIBRARIES
|
|
cblas
|
|
PATHS
|
|
$ENV{CBLASDIR}/lib
|
|
${LIB_INSTALL_DIR}
|
|
)
|
|
|
|
find_file(CBLAS_LIBRARIES
|
|
libcblas.so.3
|
|
PATHS
|
|
/usr/lib
|
|
/usr/lib64
|
|
$ENV{CBLASDIR}/lib
|
|
${LIB_INSTALL_DIR}
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(CBLAS DEFAULT_MSG
|
|
CBLAS_INCLUDES CBLAS_LIBRARIES)
|
|
|
|
mark_as_advanced(CBLAS_INCLUDES CBLAS_LIBRARIES)
|