[cmake-developers] [CMake 0015766]: Fails to infer CMAKE_ASM_COMPILER with CC='ccache gcc'

Mantis Bug Tracker mantis at public.kitware.com
Sat Oct 3 18:02:58 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15766 
====================================================================== 
Reported By:                NAKAMURA Takumi
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15766
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-10-03 18:02 EDT
Last Modified:              2015-10-03 18:02 EDT
====================================================================== 
Summary:                    Fails to infer CMAKE_ASM_COMPILER with CC='ccache
gcc'
Description: 
For CMAKE_C_COMPILER, "gcc" is fed to the first in the argument.
In contrast, "gcc" disappears for CMAKE_ASM_COMPILER.

Of course, it works if ASM is explicitly specified without ccache.

Steps to Reproduce: 
project(Test C ASM)
cmake_minimum_required(VERSION 2.8.12.2)
add_executable(Test foo.c bar.S)

# CC=ccache\ gcc cmake .

# make
[ 66%] Building ASM object CMakeFiles/Test.dir/bar.S.o
/usr/bin/ccache    -o CMakeFiles/Test.dir/bar.S.o -c
/home/tnakamura/fio/ninja/xxx/bar.S
/usr/bin/ccache: invalid option -- 'o'
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-10-03 18:02 NAKAMURA TakumiNew Issue                                    
======================================================================



More information about the cmake-developers mailing list