Make sudo make install work how it should.
This commit is contained in:
@@ -18,5 +18,7 @@ if(NOT CMAKE_BUILD_TYPE)
|
|||||||
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the build type" FORCE)
|
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the build type" FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS ReArchive DESTINATION /usr/lib)
|
include(GNUInstallDirs)
|
||||||
install(TARGETS rsarchive DESTINATION /usr/bin)
|
set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "Install path prefix" FORCE)
|
||||||
|
install(TARGETS ReArchive DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
install(TARGETS rsarchive DESTINATION ${CMAKE_INSTALL_BINDIR})
|
@@ -216,7 +216,7 @@ bool ReArchive::OverwriteFile(const std::filesystem::path& archive, const std::f
|
|||||||
file_table = current_file_table;
|
file_table = current_file_table;
|
||||||
|
|
||||||
const FileEntry* target = nullptr;
|
const FileEntry* target = nullptr;
|
||||||
auto file_entries = file_table.GetEntries();
|
auto file_entries = file_table->GetEntries();
|
||||||
|
|
||||||
auto value = file_entries->find(file_path);
|
auto value = file_entries->find(file_path);
|
||||||
if (value != file_entries->end())
|
if (value != file_entries->end())
|
||||||
|
Reference in New Issue
Block a user