From 154d119e13e5dffa5ecfc4235a3e49d49cef44d1 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Thu, 14 Nov 2013 15:24:18 +0100 Subject: [PATCH] do not use include_directories when calling find_package(OpenCV) This is something that should be left to the user, that's the whole point of OpenCV_INCLUDE_DIRS. --- cmake/templates/OpenCVConfig.cmake.in | 1 - 1 file changed, 1 deletion(-) diff --git a/cmake/templates/OpenCVConfig.cmake.in b/cmake/templates/OpenCVConfig.cmake.in index 2dfc78169b..183c669381 100644 --- a/cmake/templates/OpenCVConfig.cmake.in +++ b/cmake/templates/OpenCVConfig.cmake.in @@ -122,7 +122,6 @@ SET(OpenCV_LIB_COMPONENTS @OPENCV_MODULES_CONFIGCMAKE@) # ============================================================== SET(OpenCV2_INCLUDE_DIRS @OpenCV2_INCLUDE_DIRS_CONFIGCMAKE@) if(OpenCV2_INCLUDE_DIRS) - include_directories(${OpenCV2_INCLUDE_DIRS}) list(APPEND OpenCV_INCLUDE_DIRS ${OpenCV2_INCLUDE_DIRS}) set(OpenCV_ADD_DEBUG_RELEASE @OpenCV_ADD_DEBUG_RELEASE_CONFIGCMAKE@)