[CMake] Strange options for Sun Studio compiler

2006-10-24 Thread Doug Henry
I noticed that the default options for build mode may be a bit strange for sun compilers.  The release mode uses -xO2 and the minimum size mode uses -xO3 (higher optimization level?).  There seems to be an option -xspace which reads: -xspace   Do not do optimizations that increase code

Re: [CMake] Strange options for Sun Studio compiler

2006-10-25 Thread Brad King
Doug Henry wrote: > I noticed that the default options for build mode may be a bit strange > for sun compilers. The release mode uses -xO2 and the minimum size mode > uses -xO3 (higher optimization level?). There seems to be an option > -xspace which reads: > > -xspace Do not do op

Re: [CMake] Strange options for Sun Studio compiler

2006-10-25 Thread Doug Henry
Before I commit anything, I would like to verify how cmake is doing its compiler detection.  Is everything simply based on name?  I can have cc in my path which is gcc, or I can set my path in a way that has cc from sun studio.  Is cmake capable of telling the difference?  I have a problem where I

Re: [CMake] Strange options for Sun Studio compiler

2006-10-25 Thread Brad King
Doug Henry wrote: > Before I commit anything, I would like to verify how cmake is doing its > compiler detection. Is everything simply based on name? I can have cc > in my path which is gcc, or I can set my path in a way that has cc from > sun studio. Is cmake capable of telling the difference?

Re: [CMake] Strange options for Sun Studio compiler

2006-10-25 Thread Doug Henry
The sun compilers also have aliases: suncc, sunCC, sunf95, etc.  Maybe those names should be used instead?  I assume this is as easy as making a Linux-sunCC.cmake file.On 10/25/06, Brad King <[EMAIL PROTECTED]> wrote: Doug Henry wrote:> Before I commit anything, I would like to verify how cmake is

Re: [CMake] Strange options for Sun Studio compiler

2006-10-25 Thread Doug Henry
 Since no one has used thiscompiler before I don't mind including the option until someone complains their version doesn't have it.I would think the same options would apply to SunOS.cmake. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailm

Re: [CMake] Strange options for Sun Studio compiler

2006-10-26 Thread Arjen Markus
Doug Henry wrote: The sun compilers also have aliases: suncc, sunCC, sunf95, etc. Maybe those names should be used instead? I assume this is as easy as making a Linux-sunCC.cmake file. Will that not get you in trouble with filesystems like Windows' that do not consider the case to be disti