Mercurial > hg > orthanc
comparison Resources/CMake/MongooseConfiguration.cmake @ 495:5bb96a6100c0
fixes for mingw64
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 Jul 2013 16:11:13 +0200 |
parents | 5f6d75cd4b46 |
children | 26b2d71228d8 |
comparison
equal
deleted
inserted
replaced
494:012b63028085 | 495:5bb96a6100c0 |
---|---|
32 add_definitions( | 32 add_definitions( |
33 -DNO_SSL=1 # Remove SSL support from mongoose | 33 -DNO_SSL=1 # Remove SSL support from mongoose |
34 ) | 34 ) |
35 endif() | 35 endif() |
36 | 36 |
37 | |
38 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND ${CMAKE_COMPILER_IS_GNUCXX}) | |
39 # This is a patch for MinGW64 | |
40 add_definitions(-D_TIMESPEC_DEFINED=1) | |
41 endif() | |
42 | |
37 source_group(ThirdParty\\Mongoose REGULAR_EXPRESSION ${MONGOOSE_SOURCES_DIR}/.*) | 43 source_group(ThirdParty\\Mongoose REGULAR_EXPRESSION ${MONGOOSE_SOURCES_DIR}/.*) |
38 | 44 |
39 else() | 45 else() |
40 CHECK_INCLUDE_FILE_CXX(mongoose.h HAVE_MONGOOSE_H) | 46 CHECK_INCLUDE_FILE_CXX(mongoose.h HAVE_MONGOOSE_H) |
41 if (NOT HAVE_MONGOOSE_H) | 47 if (NOT HAVE_MONGOOSE_H) |