gnu: flightgear: Use system cppunit.

* gnu/packages/games.scm (flightgear)[source]: Adjust snippet to remove
bundled cppunit.
[arguments]: Add configure-flag to use system cppunit.
This commit is contained in:
Efraim Flashner 2021-11-03 22:39:47 +02:00
parent d3abd5cd8b
commit b93e06a964
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -9320,12 +9320,14 @@ (define-public flightgear
'(begin
;; There are some bundled libraries.
(for-each delete-file-recursively
'("3rdparty/sqlite3/"))
'("3rdparty/sqlite3/"
"3rdparty/cppunit/"))
#t))))
(build-system qt-build-system)
(arguments
`(#:configure-flags
(list "-DSYSTEM_SQLITE=ON"
"-DSYSTEM_CPPUNIT=ON"
(string-append "-DFG_DATA_DIR="
(assoc-ref %outputs "out")
"/share/flightgear"))