openmvg: don't build shared if isStatic

This commit is contained in:
Bouke van der Bijl 2023-01-25 10:48:16 +01:00
parent 6917c3116b
commit a725652372

View File

@ -4,6 +4,7 @@
, libpng ? null
, eigen ? null
, libtiff ? null
, enableShared ? !stdenv.hostPlatform.isStatic
, enableExamples ? false
, enableDocs ? false }:
@ -27,8 +28,7 @@ stdenv.mkDerivation rec {
"-DCMAKE_CXX_FLAGS=-std=c++11"
"-DOpenMVG_BUILD_EXAMPLES=${if enableExamples then "ON" else "OFF"}"
"-DOpenMVG_BUILD_DOC=${if enableDocs then "ON" else "OFF"}"
"-DOpenMVG_BUILD_SHARED=ON"
];
] ++ lib.optional enableShared "-DOpenMVG_BUILD_SHARED=ON";
cmakeDir = "./src";