diff options
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r-- | src/frontend/qt_sdl/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/CMakeLists.txt b/src/frontend/qt_sdl/CMakeLists.txt index 865acca..add53c2 100644 --- a/src/frontend/qt_sdl/CMakeLists.txt +++ b/src/frontend/qt_sdl/CMakeLists.txt @@ -53,6 +53,12 @@ find_package(PkgConfig REQUIRED) find_package(Iconv REQUIRED) pkg_check_modules(SDL2 REQUIRED sdl2) pkg_check_modules(SLIRP REQUIRED slirp) + +if (APPLE) + execute_process(COMMAND brew --prefix libarchive + OUTPUT_VARIABLE LIBARCHIVE_DIR) + set(CMAKE_PREFIX_PATH "${LIBARCHIVE_DIR}/lib/pkgconfig") +endif() pkg_check_modules(LIBARCHIVE REQUIRED libarchive) if (WIN32 AND (CMAKE_BUILD_TYPE STREQUAL Release)) |