[CMake] Switching between i386, i586 and i686
Chuck Atkins
chuck.atkins at kitware.com
Tue Aug 26 15:13:42 EDT 2014
Hi Amul,
The -march flag doesn't automatically get set by CMake since it tends to be
highly system specific; you'll need to explicitly add it to your
CMAKE_{C,CXX,Fortran}_FLAGS variables if you want it used. The
CMAKE_SYSTEM_PROCESSOR variable is usually used only for packaging to
determine output file names and in cross compiling.
- Chuck
On Tue, Aug 26, 2014 at 2:23 PM, Amul Shah <amul.shah at fisglobal.com> wrote:
> My host machine is RedHat 6 i686. I was wondering how I could direct CMake
> to set -march to either i386 or i586 without manually setting -march=. I
> tried changing CMAKE_SYSTEM_PROCESSOR, but that did not work.
>
> thanks,
> Amul
>
> _____________
> The information contained in this message is proprietary and/or
> confidential. If you are not the intended recipient, please: (i) delete the
> message and all copies; (ii) do not disclose, distribute or use the message
> in any manner; and (iii) notify the sender immediately. In addition, please
> be aware that any message addressed to our domain is subject to archiving
> and review by persons other than the intended recipient. Thank you.
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140826/7bb25fa8/attachment.html>
More information about the CMake
mailing list