Fixed #1608
This commit is contained in:
parent
4f97b20ff6
commit
504262d3d8
@ -132,6 +132,9 @@ endif()
|
|||||||
# ==============================================================
|
# ==============================================================
|
||||||
if(NOT OpenCV_FIND_COMPONENTS)
|
if(NOT OpenCV_FIND_COMPONENTS)
|
||||||
set(OpenCV_FIND_COMPONENTS ${OpenCV_LIB_COMPONENTS})
|
set(OpenCV_FIND_COMPONENTS ${OpenCV_LIB_COMPONENTS})
|
||||||
|
if(GTest_FOUND OR GTEST_FOUND)
|
||||||
|
list(REMOVE_ITEM OpenCV_FIND_COMPONENTS opencv_ts)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# expand short module names and see if requested components exist
|
# expand short module names and see if requested components exist
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user