View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002060CMakeCMakepublic2005-07-19 17:412005-07-29 14:07
ReporterEddy Pronk 
Assigned ToBill Hoffman 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002060: CC/CXX environment variable handled in odd way
DescriptionAs you can see below the CC variable is broken in two pieces and flags are
inserted inbetween.

export 'CC=ccache arm-linux-gcc'
export 'CFLAGS='-I/home/epronk/oe/build/tmp/staging/arm-linux/include
-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2'

Building C object cmTryCompileExec.dir/testCCompiler.o
/usr/bin/ccache -o cmTryCompileExec.dir/testCCompiler.o
-I/home/epronk/oe/build/tmp/staging/arm-linux/include
-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2
arm-linux-gcc -I/home/epronk/oe/build/tmp/staging/arm-linux/include
-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2
-c
/home/epronk/oe/build/tmp/work/allegro-1.0-r0/allegro-1.0/CMakeTmp/testCCompiler.c
| /usr/bin/ccache: invalid option -- o
| ccache, a compiler cache. Version 2.3
| Copyright Andrew Tridgell, 2002

see ML discussion
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0002708)

2005-07-20 13:08

I have checked in a change to cvs, that should keep the arguments together. Please try cvs cmake and let me know if it works for you.
(0002709)
Bill Hoffman (manager)
2005-07-20 13:09

I have checked in a change to cvs cmake that should fix this, please try and let me know.
(0002713)
Eddy Pronk (reporter)
2005-07-21 07:08

I tried it with 'ccache gcc' and now it works, thanks!

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team