Skip to content
Permalink
Browse files

Fix Windows build warnings

  • Loading branch information
NathanW2 committed Jan 9, 2018
1 parent 0f79bfb commit a934060d4c9f6dc766d9e7cb9dac16ef419cd8d8
Showing with 3 additions and 2 deletions.
  1. +2 −2 CMakeLists.txt
  2. +1 −0 src/crashhandler/qgsstacktrace.h
@@ -468,8 +468,8 @@ ELSE (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
ENDIF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)

IF(MSVC)
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -DQGISDEBUG=1")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DQGISDEBUG=1")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
# disable macros that offend std::numeric_limits<T>::min()/max()
ADD_DEFINITIONS(-DNOMINMAX)
ENDIF(MSVC)
@@ -17,6 +17,7 @@
#define QGSSTACKTRACE_H

#include <QVector>
#include "qgsconfig.h"

#ifdef QGISDEBUG
#ifdef WIN32

0 comments on commit a934060

Please sign in to comment.
You can’t perform that action at this time.