Skip to content

Commit

Permalink
check if CMake is installed, if we build libunwind
Browse files Browse the repository at this point in the history
  • Loading branch information
stefantalpalaru committed Apr 17, 2020
1 parent da21698 commit fc63983
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ endif # USE_VENDORED_LIBUNWIND

# DESTDIR does not work on Windows for a CMake-generated Makefile
$(LIBDIR)/libunwind.a:
+ echo -e $(BUILD_MSG) "$@" && \
cd vendor/libunwind && \
+ echo -e $(BUILD_MSG) "$@"; \
which cmake &>/dev/null || { echo "CMake not installed. Aborting."; exit 1; }; \
cd vendor/libunwind && \
rm -f CMakeCache.txt && \
cmake -DLIBUNWIND_ENABLE_SHARED=OFF -DLIBUNWIND_ENABLE_STATIC=ON -DLIBUNWIND_INCLUDE_DOCS=OFF \
-DLIBUNWIND_LIBDIR_SUFFIX="" -DCMAKE_INSTALL_PREFIX="$(CURDIR)/install/usr" $(CMAKE_ARGS) . $(HANDLE_OUTPUT) && \
Expand Down

0 comments on commit fc63983

Please sign in to comment.