aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorWaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com>2021-01-04 10:31:57 +0000
committerGitHub <noreply@github.com>2021-01-04 10:31:57 +0000
commit6c911574952eda12dbdeeca04d837af7dc1e2b93 (patch)
treeadf4e8d59ccb7dd9daa2b7e055c7c08972cd3f98 /src/frontend
parent9e15488e95ca6dc2c0dcbd7c4fe77195f5be1b4e (diff)
Fix libarchive being found on macOS
properly this time
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/qt_sdl/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/frontend/qt_sdl/CMakeLists.txt b/src/frontend/qt_sdl/CMakeLists.txt
index add53c2..f5fb37a 100644
--- a/src/frontend/qt_sdl/CMakeLists.txt
+++ b/src/frontend/qt_sdl/CMakeLists.txt
@@ -55,8 +55,10 @@ pkg_check_modules(SDL2 REQUIRED sdl2)
pkg_check_modules(SLIRP REQUIRED slirp)
if (APPLE)
+ # Find libarchive on macOS, because macOS only provides the library, not the headers
execute_process(COMMAND brew --prefix libarchive
- OUTPUT_VARIABLE LIBARCHIVE_DIR)
+ OUTPUT_VARIABLE LIBARCHIVE_DIR
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
set(CMAKE_PREFIX_PATH "${LIBARCHIVE_DIR}/lib/pkgconfig")
endif()
pkg_check_modules(LIBARCHIVE REQUIRED libarchive)