From fbf28bcc63bc195e9736a5b2251accf050c69036 Mon Sep 17 00:00:00 2001 From: Rok Mandeljc Date: Sat, 30 Aug 2014 00:49:56 +0200 Subject: [PATCH] samples: gpu: performance: fix include path for opencv_xfeatures2d As opencv_xfeatures2d is part of opencv-contrib and not opencv repository, ${OpenCV_SOURCE_DIR}/modules/modules/include is not a correct include path - use ${opencv_xfeatures2d_SOURCE_DIR}/include instead --- samples/gpu/performance/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/gpu/performance/CMakeLists.txt b/samples/gpu/performance/CMakeLists.txt index 0b256633ce..d283c7650a 100644 --- a/samples/gpu/performance/CMakeLists.txt +++ b/samples/gpu/performance/CMakeLists.txt @@ -4,7 +4,7 @@ file(GLOB sources "performance/*.cpp") file(GLOB headers "performance/*.h") if(HAVE_opencv_xfeatures2d) - ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/xfeatures2d/include") + ocv_include_directories("${opencv_xfeatures2d_SOURCE_DIR}/include") endif() add_executable(${the_target} ${sources} ${headers})