X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d5718258083be61d600e55b70915ccca43666e0f..b31e581e1422bec5a4088d3cadb53f8bf39c38ee:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index ca5ab2d733..b03c59570a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -228,12 +228,10 @@ if(enable_ns3) include(FindNS3) if (SIMGRID_HAVE_NS3) if (NOT NS3_VERSION EQUAL "3-dev" AND NS3_VERSION VERSION_LESS "3.28") - message(FATAL_ERROR "SimGrid needs at least ns-3.28. Please upgrade or disable that cmake option.") + message(FATAL_ERROR "SimGrid needs ns-3 in version 3.28 or higher. Please upgrade or disable that cmake option.") endif() set(SIMGRID_HAVE_NS3 1) - foreach(lib core csma point-to-point internet network applications wifi) - set(SIMGRID_DEP "${SIMGRID_DEP} -lns${NS3_VERSION}-${lib}${NS3_SUFFIX}") - endforeach() + set(SIMGRID_DEP "${SIMGRID_DEP} ${NS3_LIBRARIES}") else() message(FATAL_ERROR "Cannot find ns-3. Please install it (apt-get install ns3 libns3-dev) or disable that cmake option") endif()