aboutsummaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2013-04-19 16:38:28 +0000
committerJörg Mayer <jmayer@loplof.de>2013-04-19 16:38:28 +0000
commitc5548e107758aca4c681b1baa338d89c11bcf61a (patch)
treec45b9f2e9ffb3f5d023b22f8051b922006848491 /ConfigureChecks.cmake
parent6c137314aa48f5e81b5e01f99d9dd13e7d1b8ff2 (diff)
Add HAVE_TM_ZONE and HAVE_TZNAME detection to fix timezone display
in cmake builds. svn path=/trunk/; revision=48932
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 3e1e125d5f..2baed4edc9 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -76,9 +76,13 @@ check_function_exists("mkdtemp" HAVE_MKDTEMP)
check_function_exists("mkstemp" HAVE_MKSTEMP)
check_function_exists("sysconf" HAVE_SYSCONF)
+#Struct members
+include(CheckStructHasMember)
+check_struct_has_member("struct tm" tm_zone time.h HAVE_TM_ZONE)
+
#Symbols but NOT enums or types
-#include(CheckSymbolExists)
-#check_symbol_exists(NL80211_CMD_SET_CHANNEL "linux/nl80211.h" HAVE_NL80211_CMD_SET_CHANNEL)
+include(CheckSymbolExists)
+check_symbol_exists(tzname "time.h" HAVE_TZNAME)
# Check for stuff that isn't testable via the tests above
#include(CheckCSourceCompiles)