openmvg: set target architecture to 'generic'
Otherwise the resulting binaries are specialized for the machine they're built on (like -march=native)
This commit is contained in:
parent
5a5adc2ad7
commit
081eb4d889
|
@ -28,6 +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"}"
|
||||
"-DTARGET_ARCHITECTURE=generic"
|
||||
] ++ lib.optional enableShared "-DOpenMVG_BUILD_SHARED=ON";
|
||||
|
||||
cmakeDir = "./src";
|
||||
|
|
Loading…
Reference in a new issue