Skip to content

Commit f751fd2

Browse files
authored
#20 fix cmake bug
1 parent 592c3dd commit f751fd2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

example/VideoCam/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@ message(STATUS "System Processor: ${CMAKE_SYSTEM_PROCESSOR}")
55

66
find_package(Threads REQUIRED)
77
find_package(OpenCV QUIET)
8-
if(NOT OpenCV_FOUND)
9-
message(FATAL_ERROR "OpenCV not found! Please install OpenCV and make sure it's visible to CMake.")
10-
endif()
118

9+
if(OpenCV_FOUND)
1210
message(STATUS "Found OpenCV version: ${OpenCV_VERSION}")
1311
message(STATUS "OpenCV include dirs: ${OpenCV_INCLUDE_DIRS}")
1412
message(STATUS "OpenCV libraries: ${OpenCV_LIBS}")
1513

16-
if(OpenCV_FOUND)
1714
# **************************编译普通节点*****************************
1815
add_executable(${PROJECT_NAME}
1916
main.cpp

0 commit comments

Comments
 (0)