diff options
Diffstat (limited to 'cmake/Modules/FindCompilerAttribute.cmake')
| -rw-r--r-- | cmake/Modules/FindCompilerAttribute.cmake | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/Modules/FindCompilerAttribute.cmake b/cmake/Modules/FindCompilerAttribute.cmake new file mode 100644 index 0000000..6ecd6ff --- /dev/null +++ b/cmake/Modules/FindCompilerAttribute.cmake @@ -0,0 +1,9 @@ +INCLUDE(CheckCSourceCompiles) +SET(HAVE___ATTRIBUTE__) +CHECK_C_SOURCE_COMPILES( +   "void  foo (int bar __attribute__((unused)) ) { } +   static void baz (void) __attribute__((unused)); +   static void baz (void) { } +   int main(){} +   " HAVE___ATTRIBUTE__ +   )  | 
