Commit f0541d76 authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: Mantis-1419: FindOpenCV.cmake supports multiarch paths (spotted by Bas...

BUG: Mantis-1419: FindOpenCV.cmake supports multiarch paths (spotted by Bas Couwenberg <sebastic@debian.org>)
parent 488fbaf1
......@@ -116,7 +116,7 @@ find_library(
OPENCV_core_LIBRARY
NAMES ${opencv_core_NAMES}
PATHS ${OPENCV_SEARCH_PATH}
PATH_SUFFIXES "lib" "lib64" "lib/x86_64-linux-gnu"
PATH_SUFFIXES "lib" "lib64" "lib/${CMAKE_LIBRARY_ARCHITECTURE}"
NO_DEFAULT_PATH
DOC "Path to opencv_core library")
......@@ -124,7 +124,7 @@ find_library(
OPENCV_ml_LIBRARY
NAMES ${opencv_ml_NAMES}
PATHS ${OPENCV_SEARCH_PATH}
PATH_SUFFIXES "lib" "lib64" "lib/x86_64-linux-gnu"
PATH_SUFFIXES "lib" "lib64" "lib/${CMAKE_LIBRARY_ARCHITECTURE}"
NO_DEFAULT_PATH
DOC "Path to opencv_ml library")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment