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