How to test for gnu extensions

Brad King brad.king at kitware.com
Fri Feb 10 15:28:50 CET 2006


David Faure wrote:
> On Thursday 09 February 2006 21:54, William A. Hoffman wrote:
> 
>>The name of the macro is 
>>check_c_source_compiles not CheckCSourceCompiles.
> 
> 
> BTW that's quite surprising/inconsistent.
> The documentation talks about CheckCSourceCompiles, not about check_c_source_compiles.

$ bin/cmake --help-module CheckCSourceCompiles
   CheckCSourceCompiles
        macro which checks if the source code compiles

        CHECK_C_SOURCE_COMPILES(SOURCE VAR)

          SOURCE   - source code to try to compile
          VAR - variable to store size if the type exists.

-Brad


More information about the Kde-buildsystem mailing list