aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2020-11-09 20:50:29 +0100
committerRSDuck <RSDuck@users.noreply.github.com>2020-11-09 20:50:29 +0100
commitae9694ef8bf423d462680a2e4b51eb632be076ff (patch)
tree0c47dc14587cce2b9fea8986eabe48fdb10fa592
parent78839f862e6bd1a8d0a3d99737bd377c5dccf11f (diff)
do what Nadia said
-rw-r--r--CMakeLists.txt12
1 files changed, 5 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 08f7f8d..e672ed6 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 "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>")
- set(CMAKE_C_ARCHIVE_FINISH true)
- set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>")
- set(CMAKE_CXX_ARCHIVE_FINISH true)
- endif()
+ set(CMAKE_AR "gcc-ar")
+ set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>")
+ set(CMAKE_C_ARCHIVE_FINISH true)
+ set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>")
+ set(CMAKE_CXX_ARCHIVE_FINISH true)
endif()
option(BUILD_QT_SDL "Build Qt/SDL frontend" ON)