More robust build system
This commit is contained in:
14
cmake_modules/FindCLAMDBLAS.cmake
Normal file
14
cmake_modules/FindCLAMDBLAS.cmake
Normal file
@@ -0,0 +1,14 @@
|
||||
file(GLOB CLAMDBLAS_ROOT /opt/clAmdBlas*)
|
||||
set(CLAMDBLAS_INCLUDE_HINTS "${CLAMDBLAS_ROOT}/include")
|
||||
set(CLAMDBLAS_LIBRARIES_HINTS "${CLAMDBLAS_ROOT}/lib64")
|
||||
|
||||
find_path(CLAMDBLAS_INCLUDE_DIR clAmdBlas.h HINTS ${CLAMDBLAS_INCLUDE_HINTS})
|
||||
find_library(CLAMDBLAS_LIBRARIES NAMES clAmdBlas HINTS ${CLAMDBLAS_LIBRARIES_HINTS})
|
||||
|
||||
if(CLAMDBLAS_LIBRARIES)
|
||||
set(CLAMDBLAS_LIBRARIES ${CLAMDBLAS_LIBRARIES})
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(CLAMDBLAS DEFAULT_MSG CLAMDBLAS_LIBRARIES CLAMDBLAS_INCLUDE_DIR)
|
||||
mark_as_advanced(CLAMDBLAS)
|
Reference in New Issue
Block a user