View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015746CMakeCMakepublic2015-09-15 15:202016-06-10 14:31
ReporterDan Kegel 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformApple MacOSOS Version
Product VersionCMake 3.3.1 
Target VersionFixed in Version 
Summary0015746: pkg_check_modules should document how to handle spaces in framework names
Descriptionpc 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 ReproduceOn 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
TagsNo tags attached.
Attached Filestgz file icon spaces-in-framework-names.tgz [^] (1,401 bytes) 2015-09-15 15:20

 Relationships

  Notes
(0042840)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 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


Copyright © 2000 - 2018 MantisBT Team