From 8a42fab5f1c0320e6bc631155e58abeb755f4a80 Mon Sep 17 00:00:00 2001 From: Deve Date: Wed, 2 Sep 2015 17:37:23 +0200 Subject: [PATCH] Declare HAVE_STRUCT_TIMESPEC also for future Visual Studio versions --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d936dbbe..f989b4f8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -213,7 +213,7 @@ if(WIN32) add_definitions(-D_CRT_SECURE_NO_WARNINGS) # Avoid timespec structure redeclaration on Visual Studio 2015 - if (MSVC_VERSION EQUAL 1900) + if (NOT (MSVC_VERSION LESS 1900)) add_definitions(-DHAVE_STRUCT_TIMESPEC) endif() endif()