This commit is contained in:
Andrey Kamaev 2012-02-19 21:56:21 +00:00
parent 4f97b20ff6
commit 504262d3d8

View 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