Meta: Require unzip and tar explicitly in CMakeLists

This should help stem the tide of people hopping in the build problems
channel on discord because they don't have unzip installed.
This commit is contained in:
Andrew Kaster 2021-08-31 01:11:45 -06:00 committed by Andreas Kling
parent 6caedc71c1
commit 60e27dea9c
Notes: sideshowbarker 2024-07-18 05:02:41 +09:00

View file

@ -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)