Skip to content
Snippets Groups Projects
Commit cddd9989 authored by Lars Bilke's avatar Lars Bilke
Browse files

MinGW fixes.

parent fcad986d
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
#include "MemWatch.h"
#if !defined(WIN32) && !defined(__APPLE__)
#if !defined(WIN32) && !defined(__APPLE__) && !defined(__MINGW32__)
#include <iostream>
#include <fstream>
#include <string>
......@@ -32,7 +32,7 @@ MemWatch::MemWatch ()
unsigned MemWatch::updateMemUsage ()
{
#if !defined(WIN32) && !defined(__APPLE__)
#if !defined(WIN32) && !defined(__APPLE__) && !defined(__MINGW32__)
std::string fname ("/proc/");
std::stringstream str_pid;
str_pid << static_cast<unsigned> (getpid());
......
......@@ -52,13 +52,16 @@ IF(NOT Boost_INCLUDE_DIRS)
IF(APPLE)
SET(BOOST_ROOT $ENV{HOMEBREW_ROOT})
ENDIF()
IF(WIN32)
IF(MSVC)
SET(Boost_USE_STATIC_LIBS ON)
IF(NOT DEFINED BOOST_LIBRARYDIR)
SET(BOOST_LIBRARYDIR "$ENV{CMAKE_LIBRARY_SEARCH_PATH}/boost/lib${BITS}-${BOOST_TOOLSET};C:/boost/lib${BITS}-${BOOST_TOOLSET};$ENV{BOOST_ROOT}/lib${BITS}-${BOOST_TOOLSET}")
SET(BOOST_INCLUDEDIR "$ENV{CMAKE_LIBRARY_SEARCH_PATH}/boost;C:/boost;$ENV{BOOST_ROOT}")
ENDIF()
ENDIF()
IF(WIN32 AND COMPILER_IS_GCC)
SET(BOOST_INCLUDEDIR "$ENV{CMAKE_LIBRARY_SEARCH_PATH}/include/boost*")
ENDIF()
FIND_PACKAGE(Boost 1.46.0 COMPONENTS ${BOOST_LIBS_TO_BUILD})
IF(Boost_FOUND)
SET(Boost_FOUND TRUE CACHE BOOL "Was Boost found?" FORCE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment