do not use include_directories when calling find_package(OpenCV)
authorVincent Rabaud <vrabaud@aldebaran-robotics.com>
Thu, 14 Nov 2013 14:24:18 +0000 (15:24 +0100)
committerVincent Rabaud <vrabaud@aldebaran-robotics.com>
Thu, 14 Nov 2013 14:24:18 +0000 (15:24 +0100)
This is something that should be left to the user, that's the whole
point of OpenCV_INCLUDE_DIRS.

cmake/templates/OpenCVConfig.cmake.in

index 2dfc781..183c669 100644 (file)
@@ -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@)