build: Tell CMake when we expect a config file rather than a find module.

This silences some very large annoying warnings at configure time.
This commit is contained in:
Ryan Pavlik 2020-06-09 15:35:45 -05:00
parent 707ef862bc
commit bbe702475a

View file

@ -29,11 +29,11 @@ find_package(Vulkan REQUIRED)
find_package(EGL) find_package(EGL)
find_package(HIDAPI) find_package(HIDAPI)
find_package(OpenHMD) find_package(OpenHMD)
find_package(OpenCV COMPONENTS core calib3d highgui imgproc imgcodecs features2d video) find_package(OpenCV COMPONENTS core calib3d highgui imgproc imgcodecs features2d video CONFIG)
find_package(Libusb1) find_package(Libusb1)
find_package(JPEG) find_package(JPEG)
find_package(realsense2) find_package(realsense2 CONFIG)
find_package(SDL2) find_package(SDL2 CONFIG)
find_package(Threads) find_package(Threads)
find_package(ZLIB) find_package(ZLIB)
find_package(cJSON) find_package(cJSON)