summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake')
-rw-r--r--Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake b/Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake
new file mode 100644
index 0000000..b319e18
--- /dev/null
+++ b/Tests/RunCMake/CheckModules/CheckStructHasMemberOk.cmake
@@ -0,0 +1,4 @@
+include(CheckStructHasMember)
+check_struct_has_member("struct timeval" tv_sec sys/select.h HAVE_TIMEVAL_TV_SEC)
+check_struct_has_member("struct timeval" tv_sec sys/select.h HAVE_TIMEVAL_TV_SEC_C LANGUAGE C)
+check_struct_has_member("struct timeval" tv_sec sys/select.h HAVE_TIMEVAL_TV_SEC_CXX LANGUAGE CXX)