gnu: assimp: Enable testing.

* gnu/packages/graphics.scm (assimp)[arguments]<#:phases>: Add
'enable-testing phase.

Change-Id: I0475094072b57ff0de206330ee30213ee114feb2
This commit is contained in:
Greg Hogan 2025-05-14 17:52:00 +00:00
parent 4e6f41f776
commit 97632d681c
No known key found for this signature in database
GPG key ID: EF6EB27413CFEEF3

View file

@ -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))