do what Nadia said

This commit is contained in:
RSDuck 2020-11-09 20:50:29 +01:00
parent 78839f862e
commit ae9694ef8b
1 changed files with 5 additions and 7 deletions

View File

@ -71,13 +71,11 @@ if (ENABLE_LTO)
add_compile_options(-flto) add_compile_options(-flto)
add_link_options(-flto) add_link_options(-flto)
if (CMAKE_C_COMPILER_ID STREQUAL "GCC") set(CMAKE_AR "gcc-ar")
set(CMAKE_AR "gcc-ar") set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>")
set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>") set(CMAKE_C_ARCHIVE_FINISH true)
set(CMAKE_C_ARCHIVE_FINISH true) set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>")
set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>") set(CMAKE_CXX_ARCHIVE_FINISH true)
set(CMAKE_CXX_ARCHIVE_FINISH true)
endif()
endif() endif()
option(BUILD_QT_SDL "Build Qt/SDL frontend" ON) option(BUILD_QT_SDL "Build Qt/SDL frontend" ON)