1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Description: Disable check for windows.h
Author: Dr. Tobias Quathamer <toddy@debian.org>
Forwarded: no
Last-Update: 2018/12/09
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -360,7 +360,9 @@
check_include_file(unistd.h HAVE_UNISTD_H)
check_include_file(sys/time.h HAVE_SYS_TIME_H)
check_include_file(sys/timeb.h HAVE_SYS_TIMEB_H)
-check_include_file(windows.h HAVE_WINDOWS_H)
+if(WIN32)
+ check_include_file(windows.h HAVE_WINDOWS_H)
+endif()
check_function_exists(timegm HAVE_TIMEGM)
check_variable_exists(daylight HAVE_DAYLIGHT)
check_function_exists(ftime HAVE_FTIME)
|