add Miro's modifications for OpenBLAS detection

This commit is contained in:
Radovan Bast
2016-07-11 16:14:44 +02:00
parent dfd6e41946
commit 4d902ea85c
5 changed files with 271 additions and 4 deletions

View File

@ -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:

View File

@ -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()