gnu: dlib: Do not build dlib twice for tests.

* gnu/packages/machine-learning.scm (dlib)[arguments]: Use makefile
instead of cmake in check phase to prevent full rebuild.

Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
Marius Bakke 2016-08-27 17:23:58 +01:00 committed by Leo Famulari
parent f40841e999
commit 8eaf53e366
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08
1 changed files with 3 additions and 4 deletions

View File

@ -502,11 +502,10 @@ single hidden layer, and for multinomial log-linear models.")
(replace 'check (replace 'check
(lambda _ (lambda _
;; No test target, so we build and run the unit tests here. ;; No test target, so we build and run the unit tests here.
(let ((test-dir (string-append "../dlib-" ,version "/dlib/test/build"))) (let ((test-dir (string-append "../dlib-" ,version "/dlib/test")))
(mkdir-p test-dir)
(with-directory-excursion test-dir (with-directory-excursion test-dir
(and (zero? (system* "cmake" "..")) (setenv "CXXFLAGS" "-std=gnu++11")
(zero? (system* "cmake" "--build" "." "--config" "Release")) (and (zero? (system* "make" "-j" (number->string (parallel-job-count))))
(zero? (system* "./dtest" "--runall"))))))) (zero? (system* "./dtest" "--runall")))))))
(add-after 'install 'delete-static-library (add-after 'install 'delete-static-library
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)