summaryrefslogtreecommitdiffstats
path: root/contrib/cmake/HeaderExists.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cmake/HeaderExists.cmake')
-rw-r--r--contrib/cmake/HeaderExists.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/cmake/HeaderExists.cmake b/contrib/cmake/HeaderExists.cmake
new file mode 100644
index 0000000..09eabbe
--- /dev/null
+++ b/contrib/cmake/HeaderExists.cmake
@@ -0,0 +1,2 @@
+include(CheckIncludeFile)
+CHECK_INCLUDE_FILE(unistd.h HAS_UNISTD_H)