pull/13383/head
Andrey Kamaev 13 years ago
parent 4f97b20ff6
commit 504262d3d8
  1. 3
      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

Loading…
Cancel
Save