Answer the question
In order to leave comments, you need to log in
How to set the -march option to cmake\make on Mac OS X
There is a project, I'm trying to build it, it gives out
In the CMakeCache.txt file, I write in
//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=
//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=
I need -march=core2 and -mtune=generic. The problem with -march remains... (suggests it's still native). Where and how to change?
PS
MacBook-Polzovatel:build polzovatel$ make
[ 2%] Building CXX object Core/CMakeFiles/Core.dir/BoundingVolume.cpp.o
/Users/polzovatel/Documents/diploma/rtbase/src/Core/BoundingVolume.cpp:1: error: bad value (native) for -march= switch
/Users/polzovatel/Documents/diploma/rtbase/src/Core/BoundingVolume.cpp:1: error: bad value (native) for -mtune= switch
make[2]: *** [Core/CMakeFiles/Core.dir/BoundingVolume.cpp.o] Error 1
make[1]: *** [Core/CMakeFiles/Core.dir/all] Error 2
make: *** [all] Error 2
MacBook-Polzovatel:build polzovatel$ gcc --version
i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright © 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question