Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do not try to link against boost_context when there is none
authorGabriel Corona <gabriel.corona@loria.fr>
Thu, 18 Jun 2015 11:21:24 +0000 (13:21 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 18 Jun 2015 11:21:24 +0000 (13:21 +0200)
buildtools/Cmake/MakeLib.cmake

index d28e29d..838739c 100644 (file)
@@ -33,7 +33,9 @@ endif()
 # Compute the dependencies of SimGrid
 #####################################
 set(SIMGRID_DEP "-lm")
-set(SIMGRID_DEP "${SIMGRID_DEP} ${Boost_CONTEXT_LIBRARY}")
+if (HAVE_BOOST_CONTEXT)
+  set(SIMGRID_DEP "${SIMGRID_DEP} ${Boost_CONTEXT_LIBRARY}")
+endif()
 
 if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD"
     AND NOT ${CMAKE_SYSTEM_VERSION} VERSION_LESS 10.0