X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4a7031dc29cbda22f5b860b57d5e7c3978c6063a..6ae04e68aa7838418bdf7cafdba4a1f5700db814:/tools/cmake/Modules/FindLibunwind.cmake diff --git a/tools/cmake/Modules/FindLibunwind.cmake b/tools/cmake/Modules/FindLibunwind.cmake index 0a52f0b2ff..2066d48f8b 100644 --- a/tools/cmake/Modules/FindLibunwind.cmake +++ b/tools/cmake/Modules/FindLibunwind.cmake @@ -1,6 +1,6 @@ # Search for libunwind and components, both includes and libraries # -# Copyright (C) 2003-2018 The SimGrid Team. +# Copyright (C) 2003-2023 The SimGrid Team. # This is distributed under the LGPL licence but please contact us for # relicensing if you need. This is merely free software, no matter the licence. # @@ -26,11 +26,11 @@ endif() # - Calls include_directories() on where libunwind.h lives # - Calls link_directories() on where the libs live -# Of course also need the core lib +# Of course also need the core lib set(LIBUNWIND_COMPONENTS ${LIBUNWIND_COMPONENTS} "unwind") message(STATUS "Looking for libunwind:") -# Let's assume we have it, and invalidate if parts are missing +# Let's assume we have it, and invalidate if parts are missing SET(HAVE_LIBUNWIND 1) # @@ -41,7 +41,7 @@ find_path(PATH_LIBUNWIND_H "libunwind.h" HINTS $ENV{LIBUNWIND_HINT} $ENV{LD_LIBRARY_PATH} - PATH_SUFFIXES include/ GnuWin32/include + PATH_SUFFIXES include/ PATHS /opt /opt/local /opt/csw /sw /usr) if(PATH_LIBUNWIND_H) string(REGEX REPLACE "/libunwind.h" "" PATH_LIBUNWIND_H "${PATH_LIBUNWIND_H}") @@ -63,7 +63,7 @@ foreach(component ${LIBUNWIND_COMPONENTS}) HINTS $ENV{LIBUNWIND_HINT} $ENV{LD_LIBRARY_PATH} - PATH_SUFFIXES lib/ GnuWin32/lib lib/system + PATH_SUFFIXES lib/ lib/system PATHS /opt /opt/local /opt/csw /sw /usr /usr/lib/) if(PATH_LIBUNWIND_LIB_${component}) # message(" ${component} ${PATH_LIBUNWIND_LIB_${component}}") @@ -78,7 +78,7 @@ foreach(component ${LIBUNWIND_COMPONENTS}) else() SET(LIBUNWIND_LIBRARIES "${LIBUNWIND_LIBRARIES} -l${component}") endif() - + else() message(" Looking for lib${component}.${LIB_EXE} - not found") SET(HAVE_LIBUNWIND 0)