diff --git a/3rdParty/CMakeLists.txt b/3rdParty/CMakeLists.txt index 69e138c..755c6dd 100644 --- a/3rdParty/CMakeLists.txt +++ b/3rdParty/CMakeLists.txt @@ -20,7 +20,7 @@ add_subdirectory(rapidyaml) #TODO move into a different file find_package(LibArchive QUIET) -if (NOT LibArchive_FOUND) +if (NOT DEFINED LibArchive_LIBRARIES) file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/deps) execute_process( COMMAND ${CMAKE_COMMAND} -G ${CMAKE_GENERATOR} -DTOOLCHAIN_FILE=${TOOLCHAIN_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/libarchive