[CMake] AC_C_RESTRICT

Bill Hoffman bill.hoffman at kitware.com
Fri Jan 4 09:46:11 EST 2013


On 1/4/2013 9:24 AM, Mateusz Loskot wrote:
> Bill,
>
> It tests if C compiler supports C99 restrict keyword,
> perhaps also implementation-specific form, e.g. __restrict, etc.
>
> [1]http://en.wikipedia.org/wiki/Restrict
Should be able to do it with a CheckCSourceCompiles:

 
http://www.cmake.org/cmake/help/v2.8.10/cmake.html#module:CheckCSourceCompiles

-Bill


More information about the CMake mailing list