summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CheckModules/CheckIncludeFilesOk.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CheckModules/CheckIncludeFilesOk.cmake')
-rw-r--r--Tests/RunCMake/CheckModules/CheckIncludeFilesOk.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/CheckModules/CheckIncludeFilesOk.cmake b/Tests/RunCMake/CheckModules/CheckIncludeFilesOk.cmake
new file mode 100644
index 0000000..0891ec6
--- /dev/null
+++ b/Tests/RunCMake/CheckModules/CheckIncludeFilesOk.cmake
@@ -0,0 +1,6 @@
+enable_language(C)
+enable_language(CXX)
+include(CheckIncludeFiles)
+check_include_files("stddef.h;stdlib.h" HAVE_STDLIB_H)
+check_include_files("stddef.h;stdlib.h" HAVE_STDLIB_H2 LANGUAGE C)
+check_include_files("cstddef;cstdlib" HAVE_CSTDLIB_H LANGUAGE CXX)