aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHoernchen <la@tfc-server.de>2017-09-19 19:23:00 +0200
committerEric Wild <la@tfc-server.de>2017-09-19 19:26:49 +0200
commitb04c2f9f035c5aede43d731e5d58e4725d2f8bb4 (patch)
treeb549fbba6031f682c05589a2576bc4de7561b11e
parent18bf26989c926a5db4fca29e7d859af42af1437c (diff)
fix for msvc14
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0597600..c6c6928 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,6 +55,9 @@ if(CMAKE_COMPILER_IS_GNUCC AND NOT WIN32)
ADD_DEFINITIONS(-Wdeclaration-after-statement)
#http://gcc.gnu.org/wiki/Visibility
add_definitions(-fvisibility=hidden)
+elseif(MSVC14 OR MSVC14)
+#pthread-w32 issue, timespec is now part of time.h
+ ADD_DEFINITIONS(-D_TIMESPEC_DEFINED)
endif()
########################################################################