From: Andrey Kamaev Date: Sun, 19 Feb 2012 21:56:21 +0000 (+0000) Subject: Fixed #1608 X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~5501 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=504262d3d8db5fb8c1a5d18db90b6a90f8062309;p=platform%2Fupstream%2Fopencv.git Fixed #1608 --- diff --git a/cmake/templates/OpenCVConfig.cmake.in b/cmake/templates/OpenCVConfig.cmake.in index 57aa20c..9040ce1 100644 --- a/cmake/templates/OpenCVConfig.cmake.in +++ b/cmake/templates/OpenCVConfig.cmake.in @@ -132,6 +132,9 @@ endif() # ============================================================== if(NOT OpenCV_FIND_COMPONENTS) set(OpenCV_FIND_COMPONENTS ${OpenCV_LIB_COMPONENTS}) + if(GTest_FOUND OR GTEST_FOUND) + list(REMOVE_ITEM OpenCV_FIND_COMPONENTS opencv_ts) + endif() endif() # expand short module names and see if requested components exist