[CMake] cmake 2.8.1 compile problems on Solaris?

Bill Hoffman bill.hoffman at kitware.com
Thu Jun 3 14:19:56 EDT 2010


On 6/3/2010 11:44 AM, Attila Nagy wrote:
> Hi,
>
> it would be easy with a conditional define, something like
>
> // If we're on Solaris...
> # if defined(sun) || defined(__sun)
> // ...and we use Studio C compiler
> # if defined __SUNPRO_C
> # define BSD_COMP
> # endif
> // Solaris
> # endif
> // Studio C compiler
>
> (or of course<sys/ioccom.h>  can be included, but _I_ think the former is more elegant)
>
> But would there a way that BSD_COMP can be defined in some CMakeLists.txt or similar file?
> I mean that way the source itself shouldn't be touched. I don't know cmake that well.
>

Have you tried git next yet?  We did some work with someone to build on 
solaris.

-Bill


More information about the CMake mailing list