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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to