Merge pull request #212446 from bouk/openmvg-build-lib

openmvg: build as shared library
This commit is contained in:
Nick Cao 2023-01-27 18:26:26 +08:00 committed by GitHub
commit b40f84b205
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@
, libpng ? null
, eigen ? null
, libtiff ? null
, enableShared ? !stdenv.hostPlatform.isStatic
, enableExamples ? false
, enableDocs ? false }:
@ -27,7 +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"}"
];
] ++ lib.optional enableShared "-DOpenMVG_BUILD_SHARED=ON";
cmakeDir = "./src";