Skip to content

Commit

Permalink
Meta: Require unzip and tar explicitly in CMakeLists
Browse files Browse the repository at this point in the history
This should help stem the tide of people hopping in the build problems
channel on discord because they don't have unzip installed.
  • Loading branch information
ADKaster authored and awesomekling committed Aug 31, 2021
1 parent 6caedc7 commit 60e27de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ if(CCACHE_PROGRAM)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
endif()

# FIXME: With cmake 3.18, we can change unzip/untar steps to use
# file(ARCHIVE_EXTRACT) instead
find_program(UNZIP unzip REQUIRED)
find_program(TAR tar REQUIRED)

unset(CMAKE_SYSROOT)
set(CMAKE_STAGING_PREFIX ${CMAKE_BINARY_DIR}/Root)
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/Root)
Expand Down

0 comments on commit 60e27de

Please sign in to comment.