Merge pull request #212446 from bouk/openmvg-build-lib
openmvg: build as shared library
This commit is contained in:
commit
b40f84b205
1 changed files with 2 additions and 1 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue