Fixed #1608
authorAndrey Kamaev <no@email>
Sun, 19 Feb 2012 21:56:21 +0000 (21:56 +0000)
committerAndrey Kamaev <no@email>
Sun, 19 Feb 2012 21:56:21 +0000 (21:56 +0000)
cmake/templates/OpenCVConfig.cmake.in

index 57aa20c..9040ce1 100644 (file)
@@ -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