Skip to content

Commit 96a92d1

Browse files
committed
Update opencv to use the cmake config
1 parent e8df033 commit 96a92d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

isis/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ find_package(GSL 2.2.1 REQUIRED)
303303
find_package(HDF5 1.8.15 REQUIRED)
304304
find_package(Jama 125 REQUIRED)
305305
find_package(NN REQUIRED)
306-
find_package(OpenCV 3.1.0 REQUIRED)
306+
find_package(OpenCV 4.9.0 REQUIRED CONFIG)
307307
find_package(PCL REQUIRED)
308308
find_package(Protobuf REQUIRED CONFIG)
309309
find_package(PROJ REQUIRED)
@@ -391,6 +391,8 @@ endforeach()
391391
# add target based linkages to ALLLIBS variable
392392
list(APPEND ALLLIBS pantor::inja sensorutilities protobuf::libprotobuf embree GDAL::GDAL Bullet::Bullet_double)
393393

394+
list(APPEND ALLINCDIRS ${OpenCV_INCLUDE_DIRS})
395+
394396
# Sometimes we add the same lib more than once (especially with LIBDIRS)
395397
list(REMOVE_DUPLICATES ALLLIBDIRS)
396398
list(REMOVE_DUPLICATES ALLLIBS)

0 commit comments

Comments
 (0)