From ae9694ef8bf423d462680a2e4b51eb632be076ff Mon Sep 17 00:00:00 2001 From: RSDuck Date: Mon, 9 Nov 2020 20:50:29 +0100 Subject: [PATCH] do what Nadia said --- CMakeLists.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 08f7f8d3..e672ed68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,13 +71,11 @@ if (ENABLE_LTO) add_compile_options(-flto) add_link_options(-flto) - if (CMAKE_C_COMPILER_ID STREQUAL "GCC") - set(CMAKE_AR "gcc-ar") - set(CMAKE_C_ARCHIVE_CREATE " qcs ") - set(CMAKE_C_ARCHIVE_FINISH true) - set(CMAKE_CXX_ARCHIVE_CREATE " qcs ") - set(CMAKE_CXX_ARCHIVE_FINISH true) - endif() + set(CMAKE_AR "gcc-ar") + set(CMAKE_C_ARCHIVE_CREATE " qcs ") + set(CMAKE_C_ARCHIVE_FINISH true) + set(CMAKE_CXX_ARCHIVE_CREATE " qcs ") + set(CMAKE_CXX_ARCHIVE_FINISH true) endif() option(BUILD_QT_SDL "Build Qt/SDL frontend" ON)