summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Hogan <code@greghogan.com>2025-05-14 17:52:00 +0000
committerGreg Hogan <code@greghogan.com>2025-07-30 16:28:27 +0000
commitc4446ec941a8a2112abe545c6b22fce5fda3b752 (patch)
tree6bd1aabdd6abf305247f1b7b5a79f70fb5c2d8d1
parentedc5405faf864ef89ef26e775cfb354a742354f7 (diff)
gnu: assimp: Enable testing.
* gnu/packages/graphics.scm (assimp)[arguments]<#:phases>: Add custom phase to enable testing. Change-Id: I0475094072b57ff0de206330ee30213ee114feb2
-rw-r--r--gnu/packages/graphics.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index c7fdd593b6..a6d19d50a6 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -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))