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

openmvg: build as shared library

authored by

Nick Cao and committed by
GitHub
b40f84b2 7ef13ee9

+2 -1
+2 -1
pkgs/applications/science/misc/openmvg/default.nix
··· 4 4 , libpng ? null 5 5 , eigen ? null 6 6 , libtiff ? null 7 + , enableShared ? !stdenv.hostPlatform.isStatic 7 8 , enableExamples ? false 8 9 , enableDocs ? false }: 9 10 ··· 27 28 "-DCMAKE_CXX_FLAGS=-std=c++11" 28 29 "-DOpenMVG_BUILD_EXAMPLES=${if enableExamples then "ON" else "OFF"}" 29 30 "-DOpenMVG_BUILD_DOC=${if enableDocs then "ON" else "OFF"}" 30 - ]; 31 + ] ++ lib.optional enableShared "-DOpenMVG_BUILD_SHARED=ON"; 31 32 32 33 cmakeDir = "./src"; 33 34