Build libarchive unless USE_SYSTEM_LIB_ARCHIVE is set
This commit is contained in:
5
3rdParty/CMakeLists.txt
vendored
5
3rdParty/CMakeLists.txt
vendored
@@ -17,7 +17,7 @@ add_subdirectory(tracy)
|
||||
add_subdirectory(libstud-uuid)
|
||||
add_subdirectory(rapidyaml)
|
||||
|
||||
if (NOT LINUX)
|
||||
if (NOT USE_SYSTEM_LIB_ARCHIVE)
|
||||
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/deps)
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_COMMAND} -G ${CMAKE_GENERATOR} -DTOOLCHAIN_FILE=${TOOLCHAIN_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/libarchive
|
||||
@@ -26,9 +26,8 @@ execute_process(
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR}/deps
|
||||
)
|
||||
|
||||
list(APPEND CMAKE_PREFIX_PATH ${CMAKE_BINARY_DIR}/deps/INSTALL)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
function(LinkLibArchive TARGET)
|
||||
find_package(LibArchive REQUIRED)
|
||||
|
||||
Reference in New Issue
Block a user