changeset 497:26b2d71228d8

fix for msvc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 19 Jul 2013 16:48:59 +0200
parents 5bb96a6100c0
children 7db04aa5104f
files Resources/CMake/MongooseConfiguration.cmake
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/MongooseConfiguration.cmake	Fri Jul 19 16:11:13 2013 +0200
+++ b/Resources/CMake/MongooseConfiguration.cmake	Fri Jul 19 16:48:59 2013 +0200
@@ -35,9 +35,11 @@
   endif()
 
 
-  if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND ${CMAKE_COMPILER_IS_GNUCXX})
-    # This is a patch for MinGW64
-    add_definitions(-D_TIMESPEC_DEFINED=1)
+  if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
+    if (${CMAKE_COMPILER_IS_GNUCXX})
+      # This is a patch for MinGW64
+      add_definitions(-D_TIMESPEC_DEFINED=1)
+    endif()
   endif()
 
   source_group(ThirdParty\\Mongoose REGULAR_EXPRESSION ${MONGOOSE_SOURCES_DIR}/.*)