Skip to content

Commit

Permalink
Use find_package in NCEP_sp
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Sep 4, 2020
1 parent e791bfc commit be35dac
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions NCEP_sp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@ set (CMAKE_Fortran_FLAGS_RELEASE "-O2 ${GEOS_Fortran_Release_FPE_Flags} ${EXTEND

esma_add_library (${this} SRCS ${srcs} DEPENDENCIES NCEP_w3_${precision})

if (APPLE)
set(MKL_Fortran TRUE)
endif ()
find_package(MKL)
if (MKL_FOUND)
target_link_libraries(${this} PUBLIC ${MKL_LIBRARIES})
set(BLA_VENDOR Intel10_64lp_seq)
target_link_libraries(${this} PRIVATE ${MKL_LIBRARIES})
else ()
target_link_libraries(${this} PUBLIC ${LAPACK_LIBRARIES})
find_package(LAPACK REQUIRED)
target_link_libraries(${this} PRIVATE ${LAPACK_LIBRARIES})
endif ()

if (precision MATCHES "r4i4")
Expand Down

0 comments on commit be35dac

Please sign in to comment.