mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: assimp: Enable testing.
* gnu/packages/graphics.scm (assimp)[arguments]<#:phases>: Add 'enable-testing phase. Change-Id: I0475094072b57ff0de206330ee30213ee114feb2
This commit is contained in:
parent
4e6f41f776
commit
97632d681c
1 changed files with 12 additions and 0 deletions
|
@ -804,6 +804,18 @@ and export to various formats including the format used by Magicavoxel.")
|
|||
(sha256
|
||||
(base32
|
||||
"097fxq0frb2nl6bp8wz7kjx6vq4i4117wwq9fnxzkiij9xwv3cq9"))))
|
||||
(arguments
|
||||
(list #:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'enable-testing
|
||||
(lambda _
|
||||
(substitute* "CMakeLists.txt"
|
||||
(("IF \\( ASSIMP_BUILD_TESTS \\)" all)
|
||||
(string-append all "\n enable_testing()")))
|
||||
(substitute* "test/CMakeLists.txt"
|
||||
;; Leave the test binary where ctest will look for it.
|
||||
(("TARGET_USE_COMMON_OUTPUT_DIRECTORY\\(unit\\)")
|
||||
"")))))))
|
||||
(build-system cmake-build-system)
|
||||
(inputs
|
||||
(list zlib))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue