mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
build(cmake): better detect libarchive
Co-authored-by: Octol1ttle <l1ttleofficial@outlook.com> Co-authored-by: Seth Flynn <getchoo@tuta.io> Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com> Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com> Signed-off-by: Seth Flynn <getchoo@tuta.io> Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
7962e223ab
commit
c456e35e41
3 changed files with 11 additions and 3 deletions
|
|
@ -1331,6 +1331,11 @@ if(TARGET PkgConfig::tomlplusplus)
|
|||
else()
|
||||
target_link_libraries(Launcher_logic tomlplusplus::tomlplusplus)
|
||||
endif()
|
||||
if(TARGET PkgConfig::libarchive)
|
||||
target_link_libraries(Launcher_logic PkgConfig::libarchive)
|
||||
else()
|
||||
target_link_libraries(Launcher_logic LibArchive::LibArchive)
|
||||
endif()
|
||||
|
||||
if (UNIX AND NOT CYGWIN AND NOT APPLE)
|
||||
target_link_libraries(Launcher_logic
|
||||
|
|
@ -1425,8 +1430,12 @@ if(Launcher_BUILD_UPDATER)
|
|||
Qt${QT_VERSION_MAJOR}::Network
|
||||
${Launcher_QT_LIBS}
|
||||
cmark::cmark
|
||||
PkgConfig::libarchive
|
||||
)
|
||||
if(TARGET PkgConfig::libarchive)
|
||||
target_link_libraries(prism_updater_logic PkgConfig::libarchive)
|
||||
else()
|
||||
target_link_libraries(prism_updater_logic LibArchive::LibArchive)
|
||||
endif()
|
||||
|
||||
add_executable("${Launcher_Name}_updater" WIN32 updater/prismupdater/updater_main.cpp)
|
||||
target_sources("${Launcher_Name}_updater" PRIVATE updater/prismupdater/updater.exe.manifest)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue