mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 11:53:51 +00:00
openmvg: don't build shared if isStatic
This commit is contained in:
parent
6917c3116b
commit
a725652372
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user