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:
Bouke van der Bijl 2023-02-22 12:14:01 +01:00
parent 5a5adc2ad7
commit 081eb4d889

View file

@ -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";