adding a module for cblas
This commit is contained in:
@ -8,8 +8,8 @@ source: ../../../modules/cc.cmake
|
||||
[static]
|
||||
source: ../../../modules/static_linking.cmake
|
||||
|
||||
[math_libs]
|
||||
source: ../../../modules/math_libs.cmake
|
||||
[cblas]
|
||||
source: ../../../modules/cblas.cmake
|
||||
|
||||
[default_build_paths]
|
||||
source: ../../../modules/default_build_paths.cmake
|
||||
|
@ -1,10 +1,7 @@
|
||||
if(BLAS_FOUND)
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||
#windows does not find cblas.h of openblas by default
|
||||
include_directories($ENV{PATH})
|
||||
endif()
|
||||
if(CBLAS_FOUND)
|
||||
include_directories(${CBLAS_INCLUDE_DIR})
|
||||
add_executable(example example.c)
|
||||
target_link_libraries(example ${MATH_LIBS})
|
||||
target_link_libraries(example ${CBLAS_LIBRARIES})
|
||||
else()
|
||||
message(FATAL_ERROR "BLAS library not found for the test cc_cblas!")
|
||||
message(FATAL_ERROR "CBLAS library not found")
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user