We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea6f14 commit a61da03Copy full SHA for a61da03
CMakeLists.txt
@@ -14,6 +14,15 @@ if(HAVE_FORK)
14
add_definitions(-DCPPUTEST_HAVE_FORK)
15
endif(HAVE_FORK)
16
17
+# Apply workaround for MinGW timespec redefinition (pthread.h / time.h)
18
+if (MINGW)
19
+ include(CheckStructHasMember)
20
+ check_struct_has_member("struct timespec" tv_sec time.h HAVE_STRUCT_TIMESPEC)
21
+ if (HAVE_STRUCT_TIMESPEC)
22
+ add_definitions(-D_TIMESPEC_DEFINED=1)
23
+ endif()
24
+endif()
25
+
26
option(STD_C "Use the standard C library" ON)
27
option(STD_CPP "Use the standard C++ library" ON)
28
option(CPPUTEST_FLAGS "Use the CFLAGS/CXXFLAGS/LDFLAGS set by CppUTest" ON)
0 commit comments