summaryrefslogtreecommitdiff
path: root/libs/libevent/docs/cmake/CheckFunctionKeywords.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libevent/docs/cmake/CheckFunctionKeywords.cmake')
-rw-r--r--libs/libevent/docs/cmake/CheckFunctionKeywords.cmake14
1 files changed, 0 insertions, 14 deletions
diff --git a/libs/libevent/docs/cmake/CheckFunctionKeywords.cmake b/libs/libevent/docs/cmake/CheckFunctionKeywords.cmake
deleted file mode 100644
index 3d968b8a6b..0000000000
--- a/libs/libevent/docs/cmake/CheckFunctionKeywords.cmake
+++ /dev/null
@@ -1,14 +0,0 @@
-include(CheckCSourceCompiles)
-
-macro(check_function_keywords _wordlist)
- set(${_result} "")
- foreach(flag ${_wordlist})
- string(REGEX REPLACE "[-+/ ()]" "_" flagname "${flag}")
- string(TOUPPER "${flagname}" flagname)
- set(have_flag "HAVE_${flagname}")
- check_c_source_compiles("${flag} void func(); void func() { } int main() { func(); return 0; }" ${have_flag})
- if(${have_flag} AND NOT ${_result})
- set(${_result} "${flag}")
- endif(${have_flag} AND NOT ${_result})
- endforeach(flag)
-endmacro(check_function_keywords)