fltk: support cross-compilation

Disabling building tests when cross-compiling, since it gives a build fail.
This commit is contained in:
Rick van Schijndel 2022-05-10 06:45:52 +02:00
parent 3141204b22
commit d620787dd7

View file

@ -37,7 +37,7 @@
, doxygen
, graphviz
, withExamples ? true
, withExamples ? (stdenv.buildPlatform == stdenv.hostPlatform)
, withShared ? true
}:
@ -139,6 +139,7 @@ stdenv.mkDerivation rec {
# Examples & Tests
"-DFLTK_BUILD_EXAMPLES=${onOff withExamples}"
"-DFLTK_BUILD_TEST=${onOff withExamples}"
# Docs
"-DOPTION_BUILD_HTML_DOCUMENTATION=${onOff withDocs}"