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 could have f77 from either set of compilers but each requires different compiler options.  Can this be done using cmake?


On 10/25/06, Brad King <[EMAIL PROTECTED]> wrote:
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 optimizations that increase code size
>
> However, I am not familiar with older versions of the sun compilers to
> know if this option is available.

Please include this in your Linux-CC.cmake that you post to the feature
request I mentioned in the other response.  Since no one has used this
compiler before I don't mind including the option until someone
complains their version doesn't have it.

Thanks,
-Brad

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to