build: Enable link time optimization in release builds. (#6887)

This commit is contained in:
Steveice10
2023-08-26 11:15:13 -07:00
committed by GitHub
parent edf157200d
commit f2e0748a22
10 changed files with 12 additions and 8 deletions

View File

@@ -17,7 +17,6 @@ create_target_directory_groups(web_service)
target_compile_definitions(web_service PUBLIC -DENABLE_WEB_SERVICE)
target_link_libraries(web_service PRIVATE citra_common network json-headers httplib cpp-jwt)
target_link_libraries(web_service PUBLIC ${OPENSSL_LIBS})
set_target_properties(web_service PROPERTIES INTERPROCEDURAL_OPTIMIZATION ${ENABLE_LTO})
if (ANDROID)
target_link_libraries(web_service PRIVATE ifaddrs)
elseif(WIN32)