Revision: 77783
http://sourceforge.net/p/brlcad/code/77783
Author: starseeker
Date: 2020-11-21 04:44:08 +0000 (Sat, 21 Nov 2020)
Log Message:
-----------
Weird... windows.h test failed on the Windows github runner...
Modified Paths:
--------------
brlcad/branches/extbuild/CMakeLists.txt
Modified: brlcad/branches/extbuild/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/CMakeLists.txt 2020-11-21 03:56:19 UTC (rev
77782)
+++ brlcad/branches/extbuild/CMakeLists.txt 2020-11-21 04:44:08 UTC (rev
77783)
@@ -1417,8 +1417,14 @@
BRLCAD_INCLUDE_FILE(uuid.h HAVE_UUID_H) # for uuid_generate() on BSD
BRLCAD_INCLUDE_FILE(unistd.h HAVE_UNISTD_H)
BRLCAD_INCLUDE_FILE(uuid/uuid.h HAVE_UUID_UUID_H) # for uuid_generate() on Mac
& Linux
-BRLCAD_INCLUDE_FILE(windows.h HAVE_WINDOWS_H) # for QueryPerformanceCounter()
on Windows
+# TODO - this test is failing on the github runner???
+#BRLCAD_INCLUDE_FILE(windows.h HAVE_WINDOWS_H) # for QueryPerformanceCounter()
on Windows
+if(MSVC)
+ CONFIG_H_APPEND(BRLCAD "#define HAVE_WINDOWS_H 1\n")
+endif(MSVC)
+
+
# custom sys/sysctl.h test due to BSDisms when compiling
check_c_source_compiles("typedef void *rusage_info_t;\ntypedef unsigned char
u_char;\ntypedef unsigned int u_int;\ntypedef unsigned long u_long;\ntypedef
unsigned short u_short;\n#define SOCK_MAXADDRLEN 255\n#include
<sys/types.h>\n#include <sys/sysctl.h>\nint main() { return 0; }"
HAVE_SYS_SYSCTL_H)
if(HAVE_SYS_SYSCTL_H)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits