From fcaad5fc131a70dd1d0fab841fd5aa3128905264 Mon Sep 17 00:00:00 2001 From: vp153 Date: Mon, 5 Apr 2010 09:50:05 +0000 Subject: [PATCH 1/1] do not set "-march=i686" on 64-bit Linux boxes git-svn-id: https://code.ros.org/svn/opencv/trunk@2982 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08 --- opencv/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/opencv/CMakeLists.txt b/opencv/CMakeLists.txt index f2d2a37a..a683acff 100644 --- a/opencv/CMakeLists.txt +++ b/opencv/CMakeLists.txt @@ -703,9 +703,11 @@ if(CMAKE_COMPILER_IS_GNUCXX) endif() if(X86) - if(NOT APPLE) - set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -march=i686") - endif() + if(NOT X86_64) + if(NOT APPLE) + set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -march=i686") + endif() + endif() endif() # Other optimizations -- 2.39.2