summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCXXInformation.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-09 15:08:20 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-09 15:08:20 (GMT)
commit08659ff4cbeb6ceee312479fcd9b4f8d694f95d6 (patch)
tree8567860b6f8e6b1d58d1f21406cdb04029da012b /Modules/CMakeCXXInformation.cmake
parent0e7f34c0a9a6ad8dbcdad32910d87b8d8671cd51 (diff)
downloadCMake-08659ff4cbeb6ceee312479fcd9b4f8d694f95d6.zip
CMake-08659ff4cbeb6ceee312479fcd9b4f8d694f95d6.tar.gz
CMake-08659ff4cbeb6ceee312479fcd9b4f8d694f95d6.tar.bz2
Re-order 'ar' options 'cq' => 'qc'
The documetnation of binutils: https://sourceware.org/binutils/docs/binutils/ar-cmdline.html suggests to use the parameters "q" and "c" in this order ("q" is operation, and "c" is the modifier). Suggested-by: Дилян Палаузов <dilyan.palauzov@aegee.org>
Diffstat (limited to 'Modules/CMakeCXXInformation.cmake')
-rw-r--r--Modules/CMakeCXXInformation.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeCXXInformation.cmake b/Modules/CMakeCXXInformation.cmake
index 1aac9d3..091627b 100644
--- a/Modules/CMakeCXXInformation.cmake
+++ b/Modules/CMakeCXXInformation.cmake
@@ -266,7 +266,7 @@ endif()
# Create a static archive incrementally for large object file counts.
# If CMAKE_CXX_CREATE_STATIC_LIBRARY is set it will override these.
if(NOT DEFINED CMAKE_CXX_ARCHIVE_CREATE)
- set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> cq <TARGET> <LINK_FLAGS> <OBJECTS>")
+ set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> qc <TARGET> <LINK_FLAGS> <OBJECTS>")
endif()
if(NOT DEFINED CMAKE_CXX_ARCHIVE_APPEND)
set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> q <TARGET> <LINK_FLAGS> <OBJECTS>")