[CMake] Passing -B on linux

Juan Sanchez Juan.Sanchez at amd.com
Thu Aug 2 13:25:30 EDT 2007


Hi Bill,

I was able to add CMAKE_CXX_FLAGS to my initial cache file and it
worked.  Thanks for the clarification.

Thanks,

Juan

Bill Hoffman wrote:
> Juan Sanchez wrote:
>> Hello gga,
>>
>> Unfortunately, the ADD_DEFINITIONS aren't being used in the initial
>> tests being done by cmake.  What I've found is that I need to put the
>> location of the 64bit linker utils needed by g++ in my PATH.  In this
>> instance, its calling the wrong assembler.  The assembler is implicitly
>> called by g++ and -B would allow me to set the path.
>>   
> If you set environment variables BEFORE running cmake, it should use 
> them in the try compile
> stuff:
> 
> Something like this:
> 
> export CXX=g++
> export CXXFLAGS=-64
> export LDFLAGS=-64
> export CFLAGS=-64
> 
> 
> 


-- 
Juan Sanchez
Juan.Sanchez at amd.com
800-538-8450 Ext. 54395
512-602-4395




More information about the CMake mailing list