Skip to content

Commit 961da83

Browse files
authored
Merge pull request #62 from ericriff/eriff/error-out-if-libarchive-not-found
Mark libarchive as required so CMake errors out if not found
2 parents 4c73157 + 43132aa commit 961da83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ if(APPLE AND LIBARCHIVE_PKG_CONFIG)
2929
find_package(PkgConfig REQUIRED)
3030
pkg_check_modules(LIBARCHIVE REQUIRED libarchive IMPORTED_TARGET)
3131
if(NOT LIBARCHIVE_FOUND)
32-
find_package(LibArchive)
32+
find_package(LibArchive REQUIRED)
3333
endif()
3434
else ()
35-
find_package(LibArchive)
35+
find_package(LibArchive REQUIRED)
3636
endif()
3737
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
3838
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core REQUIRED)

0 commit comments

Comments
 (0)