Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork56.4k
CMake: make OPENCV_TEST_DATA_PATH cached, add warning if tests are built#18703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Add warning if INSTALL_TESTS is ON but OPENCV_TEST_DATA_PATH is not set
alalek commentedOct 30, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This CMake variable is used for testdata installation, but it is not necessary and optional step. Also Also it is not necessary to install anything to run OpenCV application or tests. You just don't need to build "install" target. Again, |
mshabunin commentedOct 30, 2020
BTW, current test data size is ~475 Mb (packed) and full install package with tests is ~50 Mb (Linux, packed). |
asmorkalov commentedNov 16, 2020
The dev team (@alalek@vpisarev@vladimir-dudnik@asmorkalov) decided to not merge the patch anc close the PR. |
Add warning if INSTALL_TESTS is ON but OPENCV_TEST_DATA_PATH is not set
Pull Request Readiness Checklist
See details athttps://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
I propose setting
OPENCV_TEST_DATA_PATHas cached variable, with docstring hinting to the required path as well as a status message warning users some tests will fail unless they set the variable whenINSTALL_TESTSis on. This should alleviate the confusion betweenOPENCV_EXTRA_MODULES_PATHpointing toopencv_contrib/modulesandOPENCV_TEST_DATA_PATHpointing toopencv_extra/testdata, mentioned in#18610