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                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to