diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ec0d3afa7..c62ccaf2c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1886,7 +1886,7 @@ if(USE_MKL) status(" MKL include dir:" "${MKL_INCLUDE_DIRS}") endif() if(USE_OPENBLAS) - status(" OpenBLAS dir:" "${OpenBLAS_DIR}") + status(" OpenBLAS include dir:" "${OpenBLAS_INCLUDE_DIR}") endif() if(USE_OPENCV) status(" OpenCV dir:" "${OpenCV_DIR}") diff --git a/cmake/FindOpenBLAS.cmake b/cmake/FindOpenBLAS.cmake index 0a962ca263..61ea2a0af9 100644 --- a/cmake/FindOpenBLAS.cmake +++ b/cmake/FindOpenBLAS.cmake @@ -59,8 +59,10 @@ set(OpenBLAS_INCLUDE_SEARCH_PATHS $ENV{OpenBLAS_HOME} $ENV{OpenBLAS_HOME}/include + $ENV{OpenBLAS_HOME}/include/openblas $ENV{OpenBLAS_DIR} $ENV{OpenBLAS_DIR}/include + $ENV{OpenBLAS_DIR}/include/openblas /opt/OpenBLAS/include /usr/local/opt/openblas/include /usr/local/include/openblas @@ -134,13 +136,15 @@ if(OpenBLAS_FOUND) else() set(OpenBLAS_LIBRARIES ${OpenBLAS_LAPACK_LIB}) endif() - if(NOT OpenBLAS_FIND_QUIETLY) - message(STATUS "Found OpenBLAS libraries: ${OpenBLAS_LAPACK_LIB}") - message(STATUS "Found OpenBLAS include: ${OpenBLAS_INCLUDE_DIR}") - endif() get_filename_component(OpenBLAS_LIB_DIR ${OpenBLAS_LIB} PATH) vp_parse_header3(OpenBLAS "${OpenBLAS_INCLUDE_DIR}/openblas_config.h" "OPENBLAS_VERSION" OpenBLAS_VERSION) + if(NOT OpenBLAS_FIND_QUIETLY) + message(STATUS "Found OpenBLAS Lapack libraries: ${OpenBLAS_LAPACK_LIB}") + message(STATUS "Found OpenBLAS include dir: ${OpenBLAS_INCLUDE_DIR}") + message(STATUS "Found OpenBLAS library dir: ${OpenBLAS_LIB}") + message(STATUS "Found OpenBLAS version: ${OpenBLAS_VERSION}") + endif() else() if(OpenBLAS_FIND_REQUIRED) message(FATAL_ERROR "Could not find OpenBLAS") diff --git a/modules/tracker/mbt/src/vpMbGenericTracker.cpp b/modules/tracker/mbt/src/vpMbGenericTracker.cpp index 7f7726ef70..9709c2efbe 100644 --- a/modules/tracker/mbt/src/vpMbGenericTracker.cpp +++ b/modules/tracker/mbt/src/vpMbGenericTracker.cpp @@ -5302,7 +5302,8 @@ void vpMbGenericTracker::testTracking() tracker->testTracking(); isOneTestTrackingOk = true; } - catch (...) { + catch (const vpException &e) { + std::cerr << "[" << it->first << "] " << e.what() << std::endl; } }