George Neill wrote:
Bill,

On Tue, Dec 9, 2008 at 9:43 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote:
George Neill wrote:
Bill,

On Tue, Dec 9, 2008 at 7:02 AM, Bill Hoffman <[EMAIL PROTECTED]>
wrote:
George Neill wrote:
Hi CMakers,

 I'd like to use cmake with the Sun cc/CC compiler on linux.   What
do I need to change to make this work?

Put them in your PATH.  Then set CC=cc, CXX=CC and run cmake.
It looks like it's picking up the gcc/g++ flags.

CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored
otherwise
CC: Warning: Option -rdynamic passed to ld, if ld is invoked, ignored
otherwise
/home/gneill/Desktop/sse/sunstudioceres/prod/lib/ld: bad -rpath option
make[1]: *** [cmTryCompileExec] Error 1
make[1]: Leaving directory `/home/gneill/test/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2

What version of cmake are you using?  We have a dashboard with this compiler
and it works fine:
http://www.cdash.org/CDash/viewNotes.php?buildid=228158


[EMAIL PROTECTED]:~$ cmake --version
cmake version 2.4-patch 7


I don't think that version had support for this compiler...

I think support was added in 2.6.0.   These are the platform files involved:

Linux-SunPro-C.cmake        Linux-SunPro-Fortran.cmake
Linux-SunPro-CXX.cmake

However, that naming scheme won't work with 2.4.7....


-Bill
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to