Skip to content

Commit 9e18ccf

Browse files
committed
Merge branch 'master' into develop
2 parents 05bde18 + 56fc617 commit 9e18ccf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

framework/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,14 @@ if( ${SAF_PERFORMANCE_LIB} MATCHES "SAF_USE_INTEL_MKL_LP64" OR ${SAF_PERFORMANCE
128128
target_link_libraries(${PROJECT_NAME} PUBLIC ${INTEL_MKL_LIB} )
129129

130130
elseif( ${SAF_PERFORMANCE_LIB} MATCHES "SAF_USE_OPEN_BLAS_AND_LAPACKE")
131-
message(STATUS "Using openBLAS...")
132131
target_compile_definitions(${PROJECT_NAME} PUBLIC SAF_USE_OPEN_BLAS_AND_LAPACKE=1)
133132

134133
# find and link libraries
135134
if (NOT DEFINED OPENBLAS_LIBRARY)
136-
find_library(OPENBLAS_LIBRARY openblas)
135+
find_library(OPENBLAS_LIBRARY openblas HINTS /usr/lib/x86_64-linux-gnu /usr/lib/arm-linux-gnueabihf)
137136
endif()
138137
if (NOT DEFINED LAPACKE_LIBRARY)
139-
find_library(LAPACKE_LIBRARY lapacke)
138+
find_library(LAPACKE_LIBRARY lapacke HINTS /usr/lib/x86_64-linux-gnu /usr/lib/arm-linux-gnueabihf)
140139
endif()
141140
target_link_libraries(${PROJECT_NAME} PUBLIC ${OPENBLAS_LIBRARY} ${LAPACKE_LIBRARY})
142141

@@ -152,6 +151,8 @@ elseif( ${SAF_PERFORMANCE_LIB} MATCHES "SAF_USE_OPEN_BLAS_AND_LAPACKE")
152151
if(UNIX)
153152
target_compile_options(${PROJECT_NAME} PRIVATE -Wno-incompatible-pointer-types)
154153
endif()
154+
155+
message(STATUS "Using OpenBLAS. Linking against: ${OPENBLAS_LIBRARY}; ${LAPACKE_LIBRARY}")
155156

156157
elseif( ${SAF_PERFORMANCE_LIB} MATCHES "SAF_USE_ATLAS")
157158
message(STATUS "Using ATLAS...")
@@ -290,11 +291,12 @@ if(SAF_ENABLE_SOFA_READER_MODULE)
290291
)
291292
endif()
292293
elseif(UNIX AND NOT APPLE)
293-
find_library(NETCDF_LIBRARY netcdf HINTS /usr/lib/x86_64-linux-gnu)
294+
find_library(NETCDF_LIBRARY netcdf HINTS HINTS /usr/lib/x86_64-linux-gnu /usr/lib/arm-linux-gnueabihf)
294295
if (NOT NETCDF_LIBRARY)
295296
message(FATAL_ERROR "NETCDF_LIBRARY not found")
296297
endif()
297298
target_link_libraries(${PROJECT_NAME} PUBLIC ${NETCDF_LIBRARY})
299+
message(STATUS "Linking NETCDF: ${NETCDF_LIBRARY}")
298300
endif()
299301

300302
else()

0 commit comments

Comments
 (0)