X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3104265881a96bcd80b29d05882fc432c17a0da6..7f520d41d99766e535e4562a1aac4d8876d1914c:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 87a0e1e95d..935710ae2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -396,23 +396,13 @@ else() SET(SIMGRID_HAVE_MALLOCATOR 0) endif() -if (minimal-bindings) - message(STATUS "Don't look for libunwind as we build minimal binding libraries.") - if(enable_model-checking) - message(FATAL_ERROR "You cannot enable model-checking and minimal-bindings at the same time.") - endif() -else() +if(enable_model-checking) include(FindLibunwind) if(HAVE_LIBUNWIND) SET(SIMGRID_DEP "${SIMGRID_DEP} ${LIBUNWIND_LIBRARIES}") else() - if(enable_model-checking) - message(FATAL_ERROR "Please install libunwind-dev libdw-dev libelf-dev libevent-dev if you want to compile the SimGrid model checker.") - endif() + message(FATAL_ERROR "Please install libunwind-dev libdw-dev libelf-dev libevent-dev if you want to compile the SimGrid model checker.") endif() -endif() - -if(enable_model-checking) find_package(Libdw REQUIRED) find_package(Libelf REQUIRED) find_package(Libevent REQUIRED)