Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/freealut-1.1.0/admin/CMakeModules/FindCompilerAttribute.cmake @ 14

Last change on this file since 14 was 14, checked in by landauf, 17 years ago

added freealut

File size: 260 bytes
RevLine 
[14]1SET(VAR HAVE_ATTRIBUTE)
2
3CHECK_C_SOURCE_COMPILES(
4"void  foo (int bar __attribute__((unused)) ) { }
5static void baz (void) __attribute__((unused));
6static void baz (void) { }
7int main(){}
8" ${VAR})
9IF(${VAR})
10  ADD_DEFINE("HAVE___ATTRIBUTE__ 1")
11ENDIF(${VAR})
Note: See TracBrowser for help on using the repository browser.