[sldev] Is there a token for specific MacOS 10 releases
Paul Oppenheim (Poppy Linden)
poppy at lindenlab.com
Wed Nov 18 15:08:18 PST 2009
Lillian Yiyuan wrote:
> I see an LL_DARWIN, is there one for specific releases?
> #ifdef LL_DARWIN_10_3
> #define LOCALE_BROKEN
> #endif
Nope. You should add specific feature tests, similar to autotools. In this case, you'd write a test for specific locale functionality, and set a flag based on it.
check out
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:try_compile
and
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:try_run
(and look in the cmake codebase for examples; we don't actually do this yet because we tend to avoid supporting non-mainline functionality)
+ poppy
More information about the SLDev
mailing list