Skip to content

Commit b38f92e

Browse files
authored
Merge pull request lagadic#1533 from s-trinh/fix_CMake_OpenBLAS_include_path
Update OpenBLAS include dir seach paths for static library
2 parents 22595c2 + ef5fc77 commit b38f92e

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,7 @@ if(USE_MKL)
18861886
status(" MKL include dir:" "${MKL_INCLUDE_DIRS}")
18871887
endif()
18881888
if(USE_OPENBLAS)
1889-
status(" OpenBLAS dir:" "${OpenBLAS_DIR}")
1889+
status(" OpenBLAS include dir:" "${OpenBLAS_INCLUDE_DIR}")
18901890
endif()
18911891
if(USE_OPENCV)
18921892
status(" OpenCV dir:" "${OpenCV_DIR}")

cmake/FindOpenBLAS.cmake

+8-4
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@
5959
set(OpenBLAS_INCLUDE_SEARCH_PATHS
6060
$ENV{OpenBLAS_HOME}
6161
$ENV{OpenBLAS_HOME}/include
62+
$ENV{OpenBLAS_HOME}/include/openblas
6263
$ENV{OpenBLAS_DIR}
6364
$ENV{OpenBLAS_DIR}/include
65+
$ENV{OpenBLAS_DIR}/include/openblas
6466
/opt/OpenBLAS/include
6567
/usr/local/opt/openblas/include
6668
/usr/local/include/openblas
@@ -134,13 +136,15 @@ if(OpenBLAS_FOUND)
134136
else()
135137
set(OpenBLAS_LIBRARIES ${OpenBLAS_LAPACK_LIB})
136138
endif()
137-
if(NOT OpenBLAS_FIND_QUIETLY)
138-
message(STATUS "Found OpenBLAS libraries: ${OpenBLAS_LAPACK_LIB}")
139-
message(STATUS "Found OpenBLAS include: ${OpenBLAS_INCLUDE_DIR}")
140-
endif()
141139

142140
get_filename_component(OpenBLAS_LIB_DIR ${OpenBLAS_LIB} PATH)
143141
vp_parse_header3(OpenBLAS "${OpenBLAS_INCLUDE_DIR}/openblas_config.h" "OPENBLAS_VERSION" OpenBLAS_VERSION)
142+
if(NOT OpenBLAS_FIND_QUIETLY)
143+
message(STATUS "Found OpenBLAS Lapack libraries: ${OpenBLAS_LAPACK_LIB}")
144+
message(STATUS "Found OpenBLAS include dir: ${OpenBLAS_INCLUDE_DIR}")
145+
message(STATUS "Found OpenBLAS library dir: ${OpenBLAS_LIB}")
146+
message(STATUS "Found OpenBLAS version: ${OpenBLAS_VERSION}")
147+
endif()
144148
else()
145149
if(OpenBLAS_FIND_REQUIRED)
146150
message(FATAL_ERROR "Could not find OpenBLAS")

modules/tracker/mbt/src/vpMbGenericTracker.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -5302,7 +5302,8 @@ void vpMbGenericTracker::testTracking()
53025302
tracker->testTracking();
53035303
isOneTestTrackingOk = true;
53045304
}
5305-
catch (...) {
5305+
catch (const vpException &e) {
5306+
std::cerr << "[" << it->first << "] " << e.what() << std::endl;
53065307
}
53075308
}
53085309

0 commit comments

Comments
 (0)