[cmake-developers] [CMake 0015312]: setting CMAKE_AR doesn't work

Mantis Bug Tracker mantis at public.kitware.com
Tue Dec 16 17:00:31 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15312 
====================================================================== 
Reported By:                Alan Scott
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15312
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-12-17 00:00 WAST
Last Modified:              2014-12-17 00:00 WAST
====================================================================== 
Summary:                    setting CMAKE_AR doesn't work
Description: 
>From a user (Dave K):

when using the intel compilers, you need to use their "ar" tool, xiar. The first
issue is that the intel ar utility is not automatically recognized when the
compiler is intel. The second issue is that setting the CMAKE_AR variable does
not propagate to the CMakeFiles/<version>/CMakeCCompiler and CMakeCXXCompiler
files (so it's effectively ignored)

This becomes evident when using -ip and -ipo optimization flags (since they fail
with static libraries linked with ar vs xiar)


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-12-17 00:00 Alan Scott     New Issue                                    
======================================================================



More information about the cmake-developers mailing list