mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: opencv: Don't hardcode build directories.
* gnu/packages/image-processing.scm (opencv)[arguments]: Change OPENCV_EXTRA_MODULES_PATH and OPENCV_TEST_DATA_PATH to use 'getcwd' instead of hardcoding the build path.
This commit is contained in:
parent
6949f45c10
commit
b5baf9529e
1 changed files with 2 additions and 5 deletions
|
@ -255,15 +255,12 @@ (define-public opencv
|
|||
"-DBUILD_PERF_TESTS=OFF"
|
||||
"-DBUILD_TESTS=ON"
|
||||
|
||||
(string-append "-DOPENCV_EXTRA_MODULES_PATH="
|
||||
"/tmp/guix-build-opencv-" ,version ".drv-0"
|
||||
(string-append "-DOPENCV_EXTRA_MODULES_PATH=" (getcwd)
|
||||
"/opencv-contrib/opencv_contrib-" ,version
|
||||
"/modules")
|
||||
|
||||
;;Define test data:
|
||||
(string-append "-DOPENCV_TEST_DATA_PATH="
|
||||
"/tmp/guix-build-opencv-" ,version ".drv-0"
|
||||
;;"/opencv-3.4.0"
|
||||
(string-append "-DOPENCV_TEST_DATA_PATH=" (getcwd)
|
||||
"/opencv-extra/opencv_extra-" ,version
|
||||
"/testdata")
|
||||
|
||||
|
|
Loading…
Reference in a new issue