diff options
author | Bouke van der Bijl <i@bou.ke> | 2023-02-22 12:14:01 +0100 |
---|---|---|
committer | Bouke van der Bijl <i@bou.ke> | 2023-02-22 12:14:01 +0100 |
commit | 081eb4d8895424207fd0cb3131cf7c2dcc146202 (patch) | |
tree | 919980990fc5f342456e5fe490b93ed8d38ec45f /pkgs/applications/science/misc/openmvg | |
parent | 5a5adc2ad7009851d7d0fc26311e42a93b171d2e (diff) |
openmvg: set target architecture to 'generic'
Otherwise the resulting binaries are specialized for the machine they're built on (like -march=native)
Diffstat (limited to 'pkgs/applications/science/misc/openmvg')
-rw-r--r-- | pkgs/applications/science/misc/openmvg/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/applications/science/misc/openmvg/default.nix b/pkgs/applications/science/misc/openmvg/default.nix index 9bd4cf12db03e..e83a13d165f07 100644 --- a/pkgs/applications/science/misc/openmvg/default.nix +++ b/pkgs/applications/science/misc/openmvg/default.nix @@ -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"; |