MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0015746 | CMake | CMake | public | 2015-09-15 15:20 | 2016-06-10 14:31 |
| Reporter | Dan Kegel | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | Apple Mac | OS | OS Version | ||
| Product Version | CMake 3.3.1 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0015746: pkg_check_modules should document how to handle spaces in framework names | ||||
| Description | pc files don't often have spaces in values, but it does happen (especially on the Mac), and a little guidance would be helpful. http://kegel.com/cmake/spaces-in-framework-names/ [^] is a worked example of how to cope with framework names that contain spaces. The idea is: - the .pc file should use a backslash in front of each space in the name (quotes don't seem to work) - the CMakeLists.txt should use string(REPLACE...) to replace semicolons with spaces and/or single quote marks, as appropriate For instance: string(REPLACE "-framework;foo;bar" "-framework 'foo bar'" foo_LDFLAGS "${foo_LDFLAGS}") | ||||
| Steps To Reproduce | On a mac: $ tar -xzvf spaces-in-framework-names.tgz $ cd spaces-in-framework-names # comment out the string(REPLACE...) in CMakeLists.txt to demonstrate problem $ sh demo.sh | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/5529/spaces-in-framework-names.tgz | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2015-09-15 15:20 | Dan Kegel | New Issue | |||
| 2015-09-15 15:20 | Dan Kegel | File Added: spaces-in-framework-names.tgz | |||
| 2016-06-10 14:29 | Kitware Robot | Note Added: 0042840 | |||
| 2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
| 2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||