build: Make libarchive not required
This commit is contained in:
parent
9952854b53
commit
d2d244ebc7
@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.16)
|
|||||||
include(ImHexPlugin)
|
include(ImHexPlugin)
|
||||||
|
|
||||||
# Homebrew only ships a libarchive keg, include directories have to be set manually
|
# Homebrew only ships a libarchive keg, include directories have to be set manually
|
||||||
find_package(LibArchive REQUIRED)
|
find_package(LibArchive)
|
||||||
if (NOT DEFINED LibArchive_INCLUDE_DIR OR LibArchive_INCLUDE_DIR STREQUAL "")
|
if (NOT DEFINED LibArchive_INCLUDE_DIR OR LibArchive_INCLUDE_DIR STREQUAL "")
|
||||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
||||||
execute_process(
|
execute_process(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user