mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 12:04:25 +02:00
handle NOMINMAX in cmake
This commit is contained in:
parent
73c8dc495b
commit
6bde55898d
3 changed files with 4 additions and 4 deletions
|
@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 2.8)
|
|||
|
||||
project(hifi)
|
||||
|
||||
IF (WIN32)
|
||||
add_definitions( -DNOMINMAX )
|
||||
ENDIF(WIN32)
|
||||
|
||||
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} $ENV{QT_CMAKE_PREFIX_PATH})
|
||||
|
||||
# set our Base SDK to 10.8
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#ifdef _WIN32
|
||||
#define NOMINMAX // this is required as long as we have civetweb because it includes windows.h, this also must be before QTimer
|
||||
#endif
|
||||
#include "civetweb.h"
|
||||
|
||||
#include <QtCore/QTimer>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifdef _WIN32
|
||||
#define NOMINMAX
|
||||
#include <windows.h>
|
||||
#define _timeval_
|
||||
#include "Systime.h"
|
||||
|
|
Loading…
Reference in a new issue