Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill remaining traces of win32 support.
[simgrid.git] / tools / cmake / Modules / FindLibunwind.cmake
index 14540fb..2066d48 100644 (file)
@@ -1,6 +1,6 @@
 # Search for libunwind and components, both includes and libraries
 #
-# Copyright (C) 2003-2019 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.
 #
@@ -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)