add Miro's modifications for OpenBLAS detection
This commit is contained in:
@ -3,8 +3,10 @@ min_cmake_version: 2.8
|
||||
modules:
|
||||
- fc:
|
||||
- source: ../../../modules/fc.cmake
|
||||
- math:
|
||||
- math1:
|
||||
- source: ../../../modules/math/blas.cmake
|
||||
- math2:
|
||||
- source: ../../../modules/math/openblas.cmake
|
||||
- default_build_paths:
|
||||
- source: ../../../modules/default_build_paths.cmake
|
||||
- src:
|
||||
|
@ -1,6 +1,17 @@
|
||||
if (ENABLE_BLAS)
|
||||
if(BLAS_FOUND)
|
||||
add_executable(example example.f90)
|
||||
target_link_libraries(example ${BLAS_LIBRARIES})
|
||||
else()
|
||||
message(FATAL_ERROR "BLAS library not found")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (ENABLE_OPENBLAS)
|
||||
if(OpenBLAS_FOUND)
|
||||
add_executable(example example.f90)
|
||||
target_link_libraries(example ${OpenBLAS_LIB})
|
||||
else()
|
||||
message(FATAL_ERROR "OpenBLAS library not found")
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user