MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0012593 | CMake | CMake | public | 2011-11-26 16:09 | 2012-01-04 15:53 |
Reporter | Stefan Majewsky | ||||
Assigned To | Alex Neundorf | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | i686 | OS | openSUSE | OS Version | 12.1 |
Product Version | CMake 2.8.6 | ||||
Target Version | Fixed in Version | ||||
Summary | 0012593: CMAKE_C_COMPILER cannot contain command line arguments | ||||
Description | The summary looks like I want CMAKE_C_FLAGS, but no! My usecase is linking something against dietlibc (http://www.fefe.de/dietlibc/ [^] for reference). The documentation for dietlibc suggests that I shall use the "diet" command for compiling. That command takes a gcc command line, e.g. diet gcc -o test test.c "diet" has its own bunch of options, e.g. diet -Os -v gcc -o test test.c I tried to use diet in CMake via set(CMAKE_C_COMPILER "diet gcc") but that outputs "diet gcc" into the Makefile verbatim (with the quotes!), and of course make then complains that the command "diet gcc" does not exist. When the quotes are omitted in CMakeLists.txt, the command in the Makefile becomes diet;gcc. My current workaround is to set(CMAKE_C_COMPILER ${PROJECT_SOURCE_DIR}/invoke-compiler.sh) where that shell script calls "diet gcc $@", but I'd prefer a proper solution. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-11-26 16:09 | Stefan Majewsky | New Issue | |||
2011-11-28 15:08 | Alex Neundorf | Assigned To | => Alex Neundorf | ||
2011-11-28 15:08 | Alex Neundorf | Status | new => assigned | ||
2011-11-28 15:08 | Alex Neundorf | Note Added: 0027861 | |||
2011-12-11 10:30 | Alex Neundorf | Note Added: 0027943 | |||
2012-01-04 15:53 | Alex Neundorf | Note Added: 0028173 | |||
2012-01-04 15:53 | Alex Neundorf | Status | assigned => closed | ||
2012-01-04 15:53 | Alex Neundorf | Resolution | open => no change required |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|