MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0009092 | CMake | CMake | public | 2009-06-02 05:26 | 2009-09-14 18:19 |
| Reporter | Marcel Loose | ||||
| Assigned To | Brad King | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-6 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0009092: cmMakefile::ParseDefineFlag() doesn't recognize "-DFOO -DBAR" as definitions, but puts them into flags | ||||
| Description | I ran into this while trying to compile a few assembly sources (see CMake mailing list thread: Problem with ASM and COMPILE_DEFINITIONS). Definitions added using add_definitions() with a quoted string containing more than one argument are NOT discarded by CMake when /usr/bin/as is called. For example, when using: add_defintions("-DMYDEF -DMYOTHERDEF") these definitions remain as arguments to /usr/bin/as. However, when supplying only a single argument, quotes don't seem to matter. Also, when removing the quotes on the multiple arguments above, CMake properly discards these preprocessor variables when invoking /usr/bin/as. | ||||
| Steps To Reproduce | |||||
| Additional Information | I've attached a tar ball with file needed to reproduce this problem. I borrowed the sources from Torsten Maehne (who pointed me to issue 0008107) Note: pow2.s was created from pow2.c using the command: gcc -fPIC -S pow2.c | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/2293/asm_add_definitions_bug.tar.gz | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2009-06-02 05:26 | Marcel Loose | New Issue | |||
| 2009-06-02 05:26 | Marcel Loose | File Added: asm_add_definitions_bug.tar.gz | |||
| 2009-09-14 12:34 | Bill Hoffman | Status | new => assigned | ||
| 2009-09-14 12:34 | Bill Hoffman | Assigned To | => Alex Neundorf | ||
| 2009-09-14 16:11 | Alex Neundorf | Note Added: 0017485 | |||
| 2009-09-14 16:12 | Alex Neundorf | Assigned To | Alex Neundorf => Brad King | ||
| 2009-09-14 16:12 | Alex Neundorf | Summary | Problem with ASM and COMPILE_DEFINITIONS set through add_definitions() => cmMakefile::ParseDefineFlag() doesn't recognize "-DFOO -DBAR" as definitions, but puts them into flags | ||
| 2009-09-14 18:18 | Brad King | Note Added: 0017499 | |||
| 2009-09-14 18:19 | Brad King | Note Added: 0017500 | |||
| 2009-09-14 18:19 | Brad King | Status | assigned => closed | ||
| 2009-09-14 18:19 | Brad King | Resolution | open => no change required | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||