[CMake] Using relative paths with INSTALL

Brad King brad.king at kitware.com
Mon Jun 8 13:28:03 EDT 2009


Timothy M. Shead wrote:
> Brad King wrote:
>> Timothy M. Shead wrote:
>>> INSTALL(FILES foo DESTINATION ../MacOS)
[snip]
> The current behavior works fine, my question was whether relative paths 
> outside the install prefix (i.e. paths starting with one or more "..") 
> were officially sanctioned / officially discouraged.  This comes-up 
> occasionally with the bundle generator, anytime someone wants to write a 
> file outside the Resources directory (which is where the bundle 
> generator maps the install prefix).

What is a "bundle generator"?

What does it have to do with install(FILES)?  This command has no
knowledge of bundles.  It uses the one and only CMAKE_INSTALL_PREFIX.

Please post an example use case of '../MacOS' and a bundle.

-Brad


More information about the CMake mailing list