Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Forced Boost 1.51+ on MSVC11 (Visual Studio 2012)

  • Loading branch information...
commit e41a9b754f5405760bf43e831605286685adeae3 1 parent ab0ab0e
@paoloambrosio authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 CMakeLists.txt
View
12 CMakeLists.txt
@@ -27,6 +27,14 @@ endif()
# Boost
#
+if(MSVC11)
+ # Boost 1.51 fixed a bug with MSVC11
+ message(STATUS "Forcing Boost 1.51+ on MSVC11")
+ set(BOOST_MIN_VERSION "1.51")
+else()
+ set(BOOST_MIN_VERSION "1.40")
+endif()
+
set(CUKE_CORE_BOOST_LIBS thread system regex date_time)
if(NOT CUKE_DISABLE_BOOST_TEST)
set(CUKE_TEST_BOOST_LIBS unit_test_framework)
@@ -49,12 +57,12 @@ endif()
if(CUKE_STATIC_BOOST_LIBS)
set(Boost_USE_STATIC_LIBS ON)
- find_package(Boost COMPONENTS ${CUKE_STATIC_BOOST_LIBS})
+ find_package(Boost ${BOOST_MIN_VERSION} COMPONENTS ${CUKE_STATIC_BOOST_LIBS})
endif()
if(CUKE_DYNAMIC_BOOST_LIBS)
set(Boost_USE_STATIC_LIBS OFF)
- find_package(Boost COMPONENTS ${CUKE_DYNAMIC_BOOST_LIBS})
+ find_package(Boost ${BOOST_MIN_VERSION} COMPONENTS ${CUKE_DYNAMIC_BOOST_LIBS})
endif()
if(Boost_FOUND)
Please sign in to comment.
Something went wrong with that request. Please try again.