From 34b3f11324c8b97ce61d03a8ce87015316dc9a2c Mon Sep 17 00:00:00 2001 From: Wu Zhangjin Date: Thu, 7 Jun 2018 22:16:48 +0800 Subject: [PATCH] CMakeLists.txt: mac: use default opencv install path the 'brew' command installs a default symbol link: /usr/local/opt/opencv for any new installed opencv version, using it instead of the one with version number is better, because it avoids modifying this setting manually. Signed-off-by: Wu Zhangjin --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 43df99d0..4fca5ce1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) if (CMAKE_SYSTEM_NAME MATCHES "Darwin") - set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} "/usr/local/opt/opencv-3.2.0") + set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} "/usr/local/opt/opencv") endif () # OpenVC3 required