message(FATAL_ERROR "Boost libraries not found. Try to install them with 'sudo fink install boost1.53.nopython' (check the exact name with 'fink list boost') or 'sudo brew install boost'")
else()
if(APPLE)
message(FATAL_ERROR "Boost libraries not found. Try to install them with 'sudo fink install boost1.53.nopython' (check the exact name with 'fink list boost') or 'sudo brew install boost'")
else()
- if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 3.11)
- find_package(Boost 1.48) #try again with just boost, as old cmake may fail.
- endif()
+ find_package(Boost 1.48) #try without optional libraries
if(NOT Boost_FOUND)
message(FATAL_ERROR "Boost libraries not found. Install libboost-dev (>= 1.48.0).")
if(NOT Boost_FOUND)
message(FATAL_ERROR "Boost libraries not found. Install libboost-dev (>= 1.48.0).")
+ else()
+ include_directories(${Boost_INCLUDE_DIRS})
+ message(STATUS "Mandatory components found. SimGrid is compilable.")