[CMake] #1f/#endif trouble...

ML mailinglists at MailNewsRSS.com
Sun Aug 16 17:27:54 EDT 2009


Hi All,

I am continuing my quest moving from XCode to CMake/Make

This may be a Make specific question though.

It would seem to me that

#if TARGET_OS_MAC

#endif

is not getting executed in my code.

I have:

#if TARGET_OS_MAC
	typedef unsigned char							UInt8;
	typedef signed char							SInt8;
	typedef unsigned short						UInt16;
	typedef signed short							SInt16;
	typedef unsigned long							UInt32;
	typedef signed long							SInt32;
#endif // TARGET_OS_MAC

and I get undefined errors, but when I comment out the #if and #end  
if, the errors go away. My question is why?

is there a better #if to use for OS X than TARGET_OS_MAC?

-Jason


More information about the CMake mailing list