X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/30082c0101bbc59ea6caffd8cf71bf65e1597b1d..9fd6cbc6c3b06f4b09e3c3339ffb3cc8a68f9bfa:/tools/cmake/Modules/FindLibunwind.cmake diff --git a/tools/cmake/Modules/FindLibunwind.cmake b/tools/cmake/Modules/FindLibunwind.cmake index 8b6dbd3998..e4ca67f210 100644 --- a/tools/cmake/Modules/FindLibunwind.cmake +++ b/tools/cmake/Modules/FindLibunwind.cmake @@ -45,7 +45,7 @@ SET(HAVE_LIBUNWIND 1) # # Search for the header file -# +# find_path(PATH_LIBUNWIND_H "libunwind.h" HINTS @@ -56,7 +56,7 @@ find_path(PATH_LIBUNWIND_H "libunwind.h" if(PATH_LIBUNWIND_H) string(REGEX REPLACE "/libunwind.h" "" PATH_LIBUNWIND_H "${PATH_LIBUNWIND_H}") message(" Found libunwind.h in ${PATH_LIBUNWIND_H}") - include_directories(${PATH_LIBUNWIND_H}) + include_directories(${PATH_LIBUNWIND_H}) else() message(" NOT FOUND libunwind.h") SET(HAVE_LIBUNWIND 0) @@ -80,7 +80,7 @@ foreach(component ${LIBUNWIND_COMPONENTS}) string(REGEX REPLACE "/lib${component}.*[.]${LIB_EXE}$" "" PATH_LIBUNWIND_LIB_${component} "${PATH_LIBUNWIND_LIB_${component}}") message(" Found lib${component}.${LIB_EXE} in ${PATH_LIBUNWIND_LIB_${component}}") link_directories(${PATH_LIBUNWIND_LIB_${component}}) - + if(${component} STREQUAL "unwind" AND APPLE) # Apple forbids to link directly against its libunwind implementation # So let's comply to that stupid restriction and link against the System framework @@ -100,7 +100,7 @@ unset(LIBUNWIND_COMPONENTS) # # Conclude and cleanup -# +# if(HAVE_LIBUNWIND) message(STATUS "Dependencies induced by libunwind: ${LIBUNWIND_LIBRARIES}") else()